Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justin-p/el-backupo
Bash script to backup files and SQL with Grive.
https://github.com/justin-p/el-backupo
Last synced: 25 days ago
JSON representation
Bash script to backup files and SQL with Grive.
- Host: GitHub
- URL: https://github.com/justin-p/el-backupo
- Owner: justin-p
- Created: 2014-12-28T14:06:42.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-21T18:28:56.000Z (about 8 years ago)
- Last Synced: 2023-02-27T13:01:44.547Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
What is this and does this do ?
--------------
This is a bash script i wrote to backup my entire MySQL database and some files, zip them with a password, sync it to my google drive and e-mail me the logs once its done.Install Grive
--------------
wget http://www.lbreda.com/grive/_media/packages/grive_0.1.1_20120619git27g55c0f4e-1_amd64.debdpkg --install grive_0.1.1_20120619git27g55c0f4e-1_amd64.deb
Make the folders
--------------
mkdir /mnt/GoogleDrivemkdir /mnt/Local
mkdir /mnt/Local/logs
Setup Grive
--------------
cd /mnt/GoogleDrivegrive -a
Setup backup.sh to your liking.
-------------
Set $FOLDER1 etc for file backups.Set PASSWORD=PASSWORD for the zip password.
Set EMAIL="EMAIL" to the recipient adress.
Setup as a daily backup
--------------
Drop the files in your home folder and chmod +x them.Add run_backup.sh to your crontab.
0 7 * * * /home/user/run_backup.sh