Nokia N900 >> Maemo

如何在Backupmenu跳過某些備份資料夾


跳過/home/user/Data備份資料夾

$ sudo vim /usr/share/backupmenu/BackupMenu.item
--- BackupMenu_bk.item
+++ BackupMenu.item
@@ -947,7 +947,7 @@
 fi
 $T2S -s 2 -H left -y $y -T 0 -t "  Backing up Optfs with Tar..."; y=$((y+20))
 cd /tmp/mnt/optfs
-gtar p"$backupOptCompress"cf $backupOptLocation ./ --ignore-failed-read --numeric-owner 2> /tmp/tarstatus & pid=$!
+gtar p"$backupOptCompress"cf $backupOptLocation ./ --ignore-failed-read --exclude=./user/Data --numeric-owner 2> /tmp/tarstatus & pid=$!
 retTARStatistics $backupOptLocation
 ret=$?
 if [ $ret == 255 ]; then


返回上一頁