- #Prøver å ta backup med tar
- if `ssh $computer "cd $filesystem ;\
- tar cfl - . $forrigecmd \
- --exclude-from=/tmp/.backup/exclude \
+ #expand the exclude-path for use with tar
+ exf=`ssh $computer "ls ~/.backup/exclude"`
+
+ #We try to run tar on the remote computer
+ # C is instead of 'cd $filesystem'
+ # - is 'this directory'
+ # l is 'stay in local filesystem
+ echo "cmdline: $tar --one-file-system -cfC - $filesystem . $lastcmd --exclude-from=$exf | gzip"
+ if `ssh $computer "$tar --one-file-system -cfC - $filesystem . $lastcmd \
+ --exclude-from=$exf \