Content-Length: 255817 | pFad | http://github.com/ccalmels/daily-backup

E3 GitHub - ccalmels/daily-backup: Daily backup script
Skip to content

ccalmels/daily-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

daily-backup

Daily backup script

Yet another script

Because I wanted something small and understandable. Do not need rsnapshot or this kind of tool to launch a rsync command after all. No config file, only command line usage.

Usage

backup.sh rsync <source_dir> <[host:]backup_dir> [<number_of_increment>]

Examples

Backup home directory using 5 incremental directories.

$ backup.sh rsync $HOME remote_backup:/backups/$(whoami)

Using systemd user daemon, rsync home directory when logout.

$ cat ~/.config/systemd/user/backup.service
[Unit]
Description=Backup: rsync $HOME directory

[Service]
RemainAfterExit=yes
ExecStart=/bin/true
ExecStop=/bin/backup.sh rsync "%h" remote_backup:/backups/"%u"

[Install]
WantedBy=default.target

About

Daily backup script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/ccalmels/daily-backup

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy