A bundle of scripts, that contain few simple solutions for backup, which I'm using within my Ubuntu installations.
-
This solution perfectly fits to 'desktop' systems, when you want easy access to your backup files and their history.
-
It is based on this nice answer, provided by PerlDuck on Ask Ubuntu SE, where are provided detailed explanations.
-
There are two files:
-
incremental_backup
- this is the main (bash
) script. I would place it in/usr/local/bin
to be accessible as shell command system wide. -
incremental_backup_cron
- this a (sh
) script desingned to be placed in/etc/cron.{daily,hourly,weekly}/
.
-
-
Installation on fly (without using git):
sudo wget -O /usr/local/bin/incremental_backup https://raw.githubusercontent.com/metalevel-tech/simple-backup-solutions/master/incremental_backup sudo chmod +x /usr/local/bin/incremental_backup sudo wget -O /etc/cron.daily/incremental_backup_cron https://raw.githubusercontent.com/metalevel-tech/simple-backup-solutions/master/incremental_backup_cron sudo chmod +x /etc/cron.daily/incremental_backup_cron
-
This solution perfectly fits to 'server' systems, when you want small and portable backups.
-
It is based on this answer of mine on Ask Ubuntu SE, where are provided detailed explanations.
-
There are two files:
-
portable_backup
- this is the main (bash
) script. I would place it in/usr/local/bin
to be accessible as shell command system wide. -
portable_backup_cron
- this a (sh
) script desingned to be placed in/etc/cron.{daily,hourly,weekly}/
.
-
-
Installation on fly (without using git):
sudo wget -O /usr/local/bin/portable_backup https://raw.githubusercontent.com/metalevel-tech/simple-backup-solutions/master/portable_backup sudo chmod +x /usr/local/bin/portable_backup sudo wget -O /etc/cron.daily/portable_backup_cron https://raw.githubusercontent.com/metalevel-tech/simple-backup-solutions/master/portable_backup_cron sudo chmod +x /etc/cron.daily/portable_backup_cron
- How to rsync multiple source folders - on Unix & Linux
- Make "rm" move files to trash instead of completely removing them - on WEB UPD8
- Command to move a file to Trash via Terminal - on Ask Ubuntu
- How to compare two dates in a shell - on Unix & Linux
- Exhaustive list of backup solutions for Linux - on GitHub