https://github.com/fracpete/simple-rsync-backup
Simple rsync-based backup.
https://github.com/fracpete/simple-rsync-backup
backup bash rsync
Last synced: about 1 month ago
JSON representation
Simple rsync-based backup.
- Host: GitHub
- URL: https://github.com/fracpete/simple-rsync-backup
- Owner: fracpete
- License: gpl-3.0
- Created: 2025-01-06T02:36:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-06T03:08:46.000Z (over 1 year ago)
- Last Synced: 2025-03-24T12:16:50.364Z (over 1 year ago)
- Topics: backup, bash, rsync
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simple-rsync-backup
Simple rsync-based backup. Can be used to rsync to a locally attached
or remotely attached HDD.
## Configuration
You can output help on the available parameters using the `-h` flag:
```bash
./simple_backup.sh -h
```
### simple_backup.list
Lists the backups to perform. Uses tab-separated triplets:
```
BACKUPNAME SOURCEDIR TARGETDIR
```
### simple_backup.BACKUPNAME.excl
For each `BACKUPNAME` in `simple_backup_list`, you can (optionally)
specify excluded resources (files/dirs).
## Examples
### Local HDD
The following will perform the backup onto the HDD `backup_hdd` mounted for the
user under `/media/USER` into directory `backup`:
```bash
./simple_backup.sh -b /media/USER/backup_hdd/backup -d -v
```
### Remote HDD
The following will perform the backup into directory `backup` onto the remote HDD mounted
on `BACKUPSERVER` under `/media/MOUNTPOINT`:
```bash
simple_backup.sh -b /media/MOUNTPOINT/backup -d -v -H BACKUPSERVER -u BACKUPUSER -P
```
The backup will run as user `BACKUPUSER`, with the user being prompted to enter
a password (`-P`).