All Projects â†’ florianbeer â†’ Hactar

florianbeer / Hactar

📃 An incremential daily backup script using rsync

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Hactar

BaNG
Backup Next Generation for Linux & Mac using rsync (support hardlinks and btrfs snapshots), Web-Frontend, Statistics, History-Merger)
Stars: ✭ 28 (-17.65%)
Mutual labels:  backup, rsync
irsync
rsync on interval, via command line binary or docker container. Server and IOT builds for pull or push based device content management.
Stars: ✭ 19 (-44.12%)
Mutual labels:  backup, rsync
btrfs-backup
A simple, flexible script for versioned backups using btrfs and rsync
Stars: ✭ 59 (+73.53%)
Mutual labels:  backup, rsync
planb
PlanB - automating remote backups and snapshots with zfs/rsync
Stars: ✭ 24 (-29.41%)
Mutual labels:  backup, rsync
Raspibackup
Backup and restore your running Raspberry
Stars: ✭ 268 (+688.24%)
Mutual labels:  backup, rsync
time-travel
An rsync based backup script which only transfers modified files. Smooth integration into OSX Notification Center.
Stars: ✭ 43 (+26.47%)
Mutual labels:  backup, rsync
Rsyncosx
A macOS GUI for rsync
Stars: ✭ 780 (+2194.12%)
Mutual labels:  backup, rsync
Rsnapshot
a tool for backing up your data using rsync (if you want to get help, use https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss)
Stars: ✭ 2,335 (+6767.65%)
Mutual labels:  backup, rsync
PyFiSync
Python (+ rsync or rclone) based intelligent file sync with automatic backups and file move/delete tracking.
Stars: ✭ 88 (+158.82%)
Mutual labels:  backup, rsync
netbackup
A frontend for various backup programs (rsync, rdiff-backup, rclone) that simplifies local and remote backups.
Stars: ✭ 15 (-55.88%)
Mutual labels:  backup, rsync
sicksync
Don’t accept the available as the preferable. Go the extra mile with extra speed.
Stars: ✭ 67 (+97.06%)
Mutual labels:  backup, rsync
Linux Timemachine
Rsync-based OSX-like time machine for Linux, MacOS and BSD for atomic and resumable local and remote backups
Stars: ✭ 358 (+952.94%)
Mutual labels:  backup, rsync
Elkarbackup
Open source backup solution for your network
Stars: ✭ 247 (+626.47%)
Mutual labels:  backup, rsync
adlibre-backup
High performance rsync backup utilising BTRFS / ZFS filesystem features
Stars: ✭ 35 (+2.94%)
Mutual labels:  backup, rsync
Rsync Time Backup
Time Machine style backup with rsync.
Stars: ✭ 2,572 (+7464.71%)
Mutual labels:  backup, rsync
rbackup
Shell script for encrypted backups with rsync and GnuPG
Stars: ✭ 22 (-35.29%)
Mutual labels:  backup, rsync
Rsync Incremental Backup
Configurable bash script to send incremental backups of your data to a local or remote target
Stars: ✭ 150 (+341.18%)
Mutual labels:  backup, rsync
System Tar And Restore
Backup and Restore your system using tar or Transfer it with rsync
Stars: ✭ 170 (+400%)
Mutual labels:  backup, rsync
cephgeorep
An efficient unidirectional remote backup daemon for CephFS.
Stars: ✭ 27 (-20.59%)
Mutual labels:  backup, rsync
Auto Gitlab Backup
A simple script to backup your Gitlab data. This script will copy the backup archives of your gitlab installation via rsync, or scp. Also, you can copy backups to Backblaze’s B2 Cloud Storage service.
Stars: ✭ 291 (+755.88%)
Mutual labels:  backup, rsync

Hactar

An incremental daily backup script using rsync

Copyright (c)2015 by Florian Beer

Version 1.01

This script comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See CC BY-NC-SA 4.0 for details. https://creativecommons.org/licenses/by-nc-sa/4.0/

Usage: hactar [OPTIONS] SOURCE TARGET

Explanation

Hactar is meant to be run daily, preferably when there is little load on your machine and rsyncs the contents of SOURCE to TARGET. Each day there will be a new subdirectory with the current date. Unchanged files will automatically be hardlinked to existing files to save diskspace.

Hactar sends a message tagged "hactar" to syslog stating SOURCE and TARGET on start and logs the total runtime when finished. This feature depends on logger and python being installed on your machine.

Options

 -r NUM         number of days to keep old backups
 -e FILE        specify rsync excludes filename
 -v             increase verbosity
 -d             dry run
 -h             show this message
 -V             show version number

Examples

Source or target can be a remote directory (via SSH) or a local path. See rsync manpage for details.

 hactar -v -e my_exludes / /backup
 hactar example.com:/home /backup
 hactar /var/www example.com:/mnt/backup
 hactar -r 7 /var/log /backup/logs

Usage

  • Save this shell script to e.g. /usr/local/bin/hactar and make it executable: chmod +x /usr/local/bin/hactar

  • Optionally, create a new file called /etc/hactar.excludesand list all directories and/or filtermaps you don't need in your backup (see rsync manpage for details). My excludes contents:

/backup
/bin
/boot
/dev
/lib
/lib64
/lost+found
/media
/mnt
/proc
/run
/sbin
/selinux
/sys
/tmp
/var/cache
/var/lock
/var/run
/var/tmp
/var/swap.img
  • Create a cron entry to run this script each day: crontab -e
0 3 * * * /usr/local/bin/hactar / /backup > /dev/null

This line calls the script each night at 3am and rsyncs the contents of / to /backup and sends you an email you if any errors occured during runtime.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].