mirror of
https://github.com/adulau/dotfiles.git
synced 2024-12-13 04:17:24 +00:00
Minimal script to do local backup (rsync)
This commit is contained in:
parent
8db6acd5af
commit
e7c7ea9059
1 changed files with 13 additions and 0 deletions
13
bin/lbackup.sh
Normal file
13
bin/lbackup.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
HOSTNAME=`hostname`
|
||||
START=`date`
|
||||
echo "Starting backup of ${HOSTNAME}"
|
||||
|
||||
|
||||
rsync -avh --exclude "/share/" --exclude "/mnt/" --exclude "/proc/" --exclude "/media/" --exclude "/sys" --exclude "/dev" / /media/43c1174c-83d4-4238-a51e-9ee6a517c228/backup/${HOSTNAME}
|
||||
|
||||
END=`date`
|
||||
|
||||
echo "Backup started at ${START} and ended at ${END} for ${HOSTNAME}">>/media/43c1174c-83d4-4238-a51e-9ee6a517c228/backup/${HOSTNAME}.log
|
||||
|
Loading…
Reference in a new issue