Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
Francesco Esposito | dceb064f22 | |
Francesco Esposito | 14a199becd | |
Francesco Esposito | 3b8480470f | |
Francesco Esposito | 6c56165846 |
|
@ -1,11 +1,11 @@
|
||||||
# rsync-linux-home
|
# 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
|
## 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`:
|
2. Configure which folders to include and which to exclude, changing arrays `INCLUDES`/`EXCLUDES` into `rsync-linux-home.py`:
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/python3
|
#!/bin/python3
|
||||||
##################################################
|
##################################################
|
||||||
# rsync-linux-home.py #
|
# rsync-linux-home.py #
|
||||||
# @frab1t #
|
# @franjsco #
|
||||||
# https://github.com/frab1t/rsync-linux-home #
|
# https://github.com/franjsco/rsync-linux-home #
|
||||||
##################################################
|
##################################################
|
||||||
import subprocess
|
import subprocess
|
||||||
import getpass
|
import getpass
|
||||||
|
@ -95,10 +95,12 @@ def execute_backup(cmd):
|
||||||
print("> Backup Aborted")
|
print("> Backup Aborted")
|
||||||
print('Error rsync')
|
print('Error rsync')
|
||||||
print("Exit code: {}".format(sperror.args[0]))
|
print("Exit code: {}".format(sperror.args[0]))
|
||||||
|
exit(sperror.args[0])
|
||||||
except Exception as exception:
|
except Exception as exception:
|
||||||
print("> Backup Aborted")
|
print("> Backup Aborted")
|
||||||
print('Error')
|
print('Error')
|
||||||
print(exception)
|
print(exception)
|
||||||
|
exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue