]> git.sesse.net Git - backup.sh/blobdiff - backup.sh
*** empty log message ***
[backup.sh] / backup.sh
index 3374865499a92542ec2baa7b2ff4f3318c1a5920..d04065dd09baa2cf0891b9256ab3389b36c505c8 100755 (executable)
--- a/backup.sh
+++ b/backup.sh
@@ -72,7 +72,10 @@ backup()
  exf=`ssh $computer "ls ~/.backup/exclude"`
 
  #We try to run tar on the remote computer
- if `ssh $computer "$tar cfCl -  $filesystem . $lastcmd \
+ #    C is instead of 'cd $filesystem'
+ #    - is 'this directory'
+ #    l is 'stay in local filesystem
+ if `ssh $computer "$tar cfCl - $filesystem . $lastcmd \
       --exclude-from=$exf \
         | gzip" \
    |  dd of=$DATE.tmp 2>/dev/null`