Rtb Wrapper

profile based rsync-time-backup wrapper
Alternatives To Rtb Wrapper
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Rsync Time Backup2,851
10 days ago1March 03, 2021101Shell
Time Machine style backup with rsync.
Backintime1,545
11 days ago209gpl-2.0Python
Back In Time - A simple backup tool for Linux
Asimov1,209
8 days ago1March 03, 202134mitPHP
Automatically exclude development dependencies from Apple Time Machine backups
Acnh Bcats186
a year ago
Animal Crossing New Horizons BCAT Events
Gbm173
3 days agogpl-3.0Visual Basic .NET
Game Backup Monitor - Automatically backup your saved games!
Timedog173
2 years ago1February 27, 20188gpl-2.0Python
Displays set of files that were saved in Time Machine backups
Raspberrypi Timemachine161
5 years ago1mit
Apple Time Machine with raspberry Pi
Rsync Time Machine92
3 years ago1gpl-2.0Python
Time Machine Style backup using rsync
Time Machine Sparce Bundle Fix68
9 years ago1Shell
Time Machine Sparsebundle Fix
Ia.bak61
3 years ago15gpl-3.0Shell
We back up a lot of stuff from around the web; now it's time to back up the Internet Archive, just in case.
Alternatives To Rtb Wrapper
Select To Compare


Alternative Project Comparisons
Readme

rtb-wrapper - declarative rsync-time-backup Build Status

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

Requirements

Setup

# 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"

Configuration

rtb-wrapper is using $HOME/.rsync_tmbackup as the base config folder, except it's overridden by the environment variable RTB_CONFIG_DIR.

Profile file

$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

Exclude file

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.

Development

Testing

There are some tests written with bats to verify your changes:

./run-tests.sh
Popular Time Projects
Popular Backup Projects
Popular Libraries Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Shell
Time
Backup
Rsync