Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tshirtman/backup
a simple backup script using rsync.
https://github.com/tshirtman/backup
Last synced: about 1 month ago
JSON representation
a simple backup script using rsync.
- Host: GitHub
- URL: https://github.com/tshirtman/backup
- Owner: tshirtman
- Created: 2020-11-29T12:48:46.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-29T13:07:35.000Z (about 4 years ago)
- Last Synced: 2024-10-27T07:25:31.513Z (about 2 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### A simple backup solution.
Strongly inspired by https://www.sanitarium.net/golug/rsync_backups_2010.html
Because everytime I look for one, everything is too complicated to setup, or to use.
`rsync` is all you need, this script is really a simple wrapper around it.
Drop it in the folder you want to save things to.
Adapt `sources` to contain local or distant (ssh) paths to folders to save.
The user that runs the script must be able to connect to these hosts and read the paths.
Adapt the `excludes` file if you have specific things to exclude.You can run it through crontab, airflow, or anyway you see fit, even manually
it's a simple bash script, that takes no parameters.It uses hard links to avoid duplicating files, so even saving every day won't
create gigantic archives, you can safely delete old backups, it won't affect
files duplicated in more recent ones (deleting old backup will only free space
for files that don't exist in any other backup anymore).