by Remi Plourde
http://github.com/remino/tarbu
This is a simple script to backup directories elsewhere on a local filesystem, and archive them into tarballs compressed with BZip2.
It's only meant to do quick backups. It provides no mean to restore files from backup, get rid of old archives, or check intergrity of the copies made. If you need something more sustainable and more practical, use Duplicity or any other similar software.
It's a shell script for Bash. Make sure Tar, BZip2, and RSync are installed.
Usage: tarbu.sh action args...
Actions:
backup what into
Backup 'what' inside 'into' directory, with dir copy and tarball.
copy from to
Copy 'from' directory structure and its files to 'to'.
expire backupdir
Delete all tarballs older than 5 days in 'backupdir'.
tarball dir file.tar.bz2
Tarball directory into file.tar.bz2.