diff options
Diffstat (limited to 'backup-backuppcmetadata')
-rwxr-xr-x | backup-backuppcmetadata | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/backup-backuppcmetadata b/backup-backuppcmetadata index bcc2f70..37be9d4 100755 --- a/backup-backuppcmetadata +++ b/backup-backuppcmetadata @@ -18,7 +18,9 @@ TARGET=/var/backups/local/backuppc cd /var/lib/backuppc/pc find -type d -maxdepth 1 -mindepth 1 | sed -e 's,^./,,' | while read dir; do - file="$TARGET/$DATE-backups-$dir" - cp "$dir/backups" "$file" - bzip2 -- "$file" + if [ "$dir" != "archive" ]; then + file="$TARGET/$DATE-backups-$dir" + cp "$dir/backups" "$file" + bzip2 -- "$file" + fi done |