Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Rsync Time Backup | 2,851 | 10 days ago | 1 | March 03, 2021 | 101 | Shell | ||||
Time Machine style backup with rsync. | ||||||||||
Backintime | 1,545 | 11 days ago | 209 | gpl-2.0 | Python | |||||
Back In Time - A simple backup tool for Linux | ||||||||||
Asimov | 1,209 | 8 days ago | 1 | March 03, 2021 | 34 | mit | PHP | |||
Automatically exclude development dependencies from Apple Time Machine backups | ||||||||||
Acnh Bcats | 186 | a year ago | ||||||||
Animal Crossing New Horizons BCAT Events | ||||||||||
Gbm | 173 | 3 days ago | gpl-3.0 | Visual Basic .NET | ||||||
Game Backup Monitor - Automatically backup your saved games! | ||||||||||
Timedog | 173 | 2 years ago | 1 | February 27, 2018 | 8 | gpl-2.0 | Python | |||
Displays set of files that were saved in Time Machine backups | ||||||||||
Raspberrypi Timemachine | 161 | 5 years ago | 1 | mit | ||||||
Apple Time Machine with raspberry Pi | ||||||||||
Rsync Time Machine | 92 | 3 years ago | 1 | gpl-2.0 | Python | |||||
Time Machine Style backup using rsync | ||||||||||
Time Machine Sparce Bundle Fix | 68 | 9 years ago | 1 | Shell | ||||||
Time Machine Sparsebundle Fix | ||||||||||
Ia.bak | 61 | 3 years ago | 15 | gpl-3.0 | Shell | |||||
We back up a lot of stuff from around the web; now it's time to back up the Internet Archive, just in case. |
You know and love the well known rsync-time-backup from Laurent Cozic aka laurent22! Now what could be missing since this is a mature project? The whole thing based on separate profile files per backup case!
Example:
Consider this example profile (named user1-documents.inc
):
SOURCE="${HOME}/Documents"
TARGET="/mnt/backup-disk/Documents"
EXCLUDE_FILE="/home/user1/opt/backup-documents-excludes.lst"
Now it's as easy as this to backup our data:
rtb-wrapper.sh backup user1-documents
And here is how to restore from the latest
backup:
rtb-wrapper.sh restore user1-documents
# prepare the profile folder
mkdir -p "${HOME}/.rsync_tmbackup/conf.d"
# download the script
curl -Lo "/usr/local/bin/rtb-wrapper.sh" "https://raw.githubusercontent.com/thomas-mc-work/rtb-wrapper/master/rtb-wrapper.sh"
# mark the script executable
chmod +x "/usr/local/bin/rtb-wrapper.sh"
rtb-wrapper
is using $HOME/.rsync_tmbackup
as the base config folder, except it's overridden by the environment variable RTB_CONFIG_DIR
.
$HOME/.rsync_tmbackup/conf.d/<profile-name>.inc
: The backup profiles, one per file
# the source folder
SOURCE="${HOME}/Documents"
# the target folder
TARGET="/media/user1/backup-disk/Documents"
# optional: the exclude file for rsync
EXCLUDE_FILE="${HOME}/backup-documents-excludes.lst"
# optional: wipe the source folder before restoring files? (true/false; default: false)
WIPE_SOURCE_ON_RESTORE=true
Alternatively you can define the exlcude file also by placing it next to the profile file. Following the convention:
${HOME}/.rsync-tmbackup/conf.d/<profile-name>.inc
${HOME}/.rsync-tmbackup/conf.d/<profile-name>.excludes.lst
This exclude file definition will be overriden by the definition within the profile.
There are some tests written with bats to verify your changes:
./run-tests.sh