3 #=======================================================================
5 # File ID: 923caf7a-6fa9-11e2-a5bc-0016d364066c
6 # Backup stuff to the external harddisk
7 # License: GNU General Public License version 2 or later.
8 #=======================================================================
11 lockdir
=$HOME/.
$progname.LOCK
14 rmdir $lockdir ||
echo $progname: $lockdir: Cannot remove lockdir
>&2
22 trap "myexit 1" INT TERM
23 mkdir
$lockdir ||
{ echo $progname: $lockdir: Cannot create lockdir
>&2; exit 1; }
25 test -d /media
/seagate-3tb
/backup ||
{ echo $progname: seagate-3tb is not mounted
>&2; myexit
1; }
27 if test -e /ubstud.mrk
; then
28 desthome
=/media
/seagate-3tb
/backup
/ubstud
/home
29 test -d $desthome ||
{ echo $progname: $desthome: Directory not found
>&2; myexit
1; }
30 msg Backup ubstud
:/home
/ to
$desthome/
31 sess
-t c_ta_backup
-- sudo rsync
-avP --delete /home
/ $desthome/