Skip to content

wiefunkdai/ShellLinuxAutoBackupFile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Stephanus Dai

ShellLinuxAutoBackupFile

A simple helper script to backup all file and directory in GNU/Linux

GitHub watchers GitHub Repo stars GitHub forks GitHub contributors GitHub pull requests GitHub issues GitHub Discussions GitHub last commit (by committer)

Guide · Report Bug · Request Feature · Provide Feedback · Ask Question

Love the project? Please consider donating or give ⭐ to help it improve!

Copyright © ID 2023 Stephanus Bagus Saputra (www.stephanusdai.web.id)
All rights reserved.


Use Bash Shell Script Linux Guidelines

Feature:

  1. Backup All Directory and File Path Selection
  2. Backup Firebird/MySQL Database File
  3. Auto Backup File with Schedule (Crontask) Linux

How to install:

Copy and paste this commands to your terminal:

  1. cd /tmp
  2. git clone https://github.com/wiefunkdai/ShellLinuxAutoBackupFile.git
  3. cd ShellLinuxAutoBackupFile
  4. sudo mkdir /opt/auto-backup
  5. sudo cp bin/runner.sh /opt/auto-backup/runner.sh
  6. cd /opt/auto-backup
  7. sudo chmod +x runner.sh
  8. sudo chown root:root runner.sh

Preparation:

Before continue, please open and edit this script according to your needs to your terminal:

sudo vi /opt/auto-backup/runner.sh

edit bellow script according to your needs:

import1="0,(change with file source folder location)"

dirforsave="(change with the location of the backup folder)"

usersql=(username mysql)

userpass=(kata sandi mysql)

dbmysqlname="(nama database mysql)"

dirsavedsql="(mysql database backup folder location)"

dirfirebirdimport="(change with firebird database folder source location)"

dirfirebirdsaved="(change with the location of the firebird database backup folder)"

fbuser="(change with firebird database login name in here)"

fbpass="(change with database password in here)"

Create New Task Schedule for running script crontask.sh:

Copy and paste this commands to your terminal:

sudo vi /etc/crontab

End then insert bellow code at crontab window:

00 00 * * * root /usr/bin/sh /opt/auto-backup/runner.sh > /tmp/crond-auto-backup.log

At midnight, the computer will automatically back up your data.

Preview of Crontask:

preview

Support the project

I open-source almost everything I can and try to reply to everyone needing help using these projects. Obviously, this takes time. You can use this service for free.

If you are using this project and are happy with it or just want to encourage me to continue creating stuff, there are a few ways you can do it:

  • Giving proper credit on the GitHub Sponsors page. Static Badge
  • Starring and sharing the project ⭐
  • You can make one-time donations via PayPal. I'll probably buy a coffee ☕ or tea 🍵 or cake 🍰
    paypal.me/wiefunkdai
  • It’s also possible to support mine financially by becoming a backer or sponsor through
    opencollective.com/wiefunkdai

However, I am available for hire. You can also give me career opportunities to help your business in developing the software you need. Please contact me at:
wiefunk@stephanusdai.web.id t.me/wiefunkdai linkedin.com/in/wiefunkdai

🙏 Thanks for your contribute and support! 😍 ❤️

Any Questions & Other Supports? see Support please.

Author Description

@wiefunkdai

• Name : Stephanus Bagus Saputra ( 戴 Dai 偉 Wie 峯 Funk )
• Email : [email protected]
• Link : https://stephanusdai.web.id


Visit Website · Global Issues · Global Discussions · Global Wiki

Copyright © ID 2023 by Stephanus Bagus Saputra (www.stephanusdai.web.id)

All rights reserved.