Compare commits

...

4 Commits
v0.1 ... master

Author SHA1 Message Date
Francesco Esposito dceb064f22 Edit username 2020-03-01 23:55:07 +01:00
Francesco Esposito 14a199becd edit url 2019-07-23 20:59:53 +02:00
Francesco Esposito 3b8480470f Edit readme 2019-04-16 13:10:41 +02:00
Francesco Esposito 6c56165846 Fix #1: exit status code doesn't work 2019-04-13 12:22:55 +02:00
2 changed files with 7 additions and 5 deletions

View File

@ -1,11 +1,11 @@
# rsync-linux-home
A simple script to make backups of your linux home.
A simple script to make backups of your linux home with rsync.
## Usage
1. Configure UUID of destination partition into `rsync-linux-home.py`:
1. Enter the UUID of the destination partition into `rsync-linux-home.py`:
```
DRIVE_UUID="<set here your UUID Partition>"
DRIVE_UUID="<set here Partition UUID>"
```
2. Configure which folders to include and which to exclude, changing arrays `INCLUDES`/`EXCLUDES` into `rsync-linux-home.py`:

View File

@ -1,8 +1,8 @@
#!/bin/python3
##################################################
# rsync-linux-home.py #
# @frab1t #
# https://github.com/frab1t/rsync-linux-home #
# @franjsco #
# https://github.com/franjsco/rsync-linux-home #
##################################################
import subprocess
import getpass
@ -95,10 +95,12 @@ def execute_backup(cmd):
print("> Backup Aborted")
print('Error rsync')
print("Exit code: {}".format(sperror.args[0]))
exit(sperror.args[0])
except Exception as exception:
print("> Backup Aborted")
print('Error')
print(exception)
exit(1)