no backup for excluded files? - Tools

This is a discussion on no backup for excluded files? - Tools ; Hi, I use rsync 3.0.2 for daily incremental backups: rsync -aAzHRxby -f '. -' --numeric-ids --delete-during --delete-excluded \ --suffix='' --backup-dir=$BACKUP_ROOT/$BACKUP_HOST/${TODAY} \ ${DESTINATION}$BACKUP_ROOT/$BACKUP_HOST/current Sometimes I add a new item to $EXCLUDE_PATTERNS but then the excluded files are backed up in $BACKUP_ROOT/$BACKUP_HOST/$TODAY. ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: no backup for excluded files?

  1. no backup for excluded files?

    Hi,

    I use rsync 3.0.2 for daily incremental backups:

    rsync -aAzHRxby -f '. -' --numeric-ids --delete-during --delete-excluded \
    --suffix='' --backup-dir=$BACKUP_ROOT/$BACKUP_HOST/${TODAY} \
    ${DESTINATION}$BACKUP_ROOT/$BACKUP_HOST/current <<< $EXCLUDE_PATTERNS

    Sometimes I add a new item to $EXCLUDE_PATTERNS but then the excluded
    files are backed up in $BACKUP_ROOT/$BACKUP_HOST/$TODAY. Is there a way
    to avoid that?

    Thanks,

    PS: the --suffix option is useless when using --backup-dir, right?
    --
    Please use reply-all for most replies to avoid omitting the mailing list.
    To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
    Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


  2. Re: no backup for excluded files?

    On Wed, 2008-08-13 at 16:19 +0200, Louis-David Mitterrand wrote:
    > I use rsync 3.0.2 for daily incremental backups:
    >
    > rsync -aAzHRxby -f '. -' --numeric-ids --delete-during --delete-excluded \
    > --suffix='' --backup-dir=$BACKUP_ROOT/$BACKUP_HOST/${TODAY} \
    > ${DESTINATION}$BACKUP_ROOT/$BACKUP_HOST/current <<< $EXCLUDE_PATTERNS
    >
    > Sometimes I add a new item to $EXCLUDE_PATTERNS but then the excluded
    > files are backed up in $BACKUP_ROOT/$BACKUP_HOST/$TODAY. Is there a way
    > to avoid that?


    No. You could use a second run that copies the backup dir to itself to
    delete any excluded files.

    > PS: the --suffix option is useless when using --backup-dir, right?


    No, you can have rsync add a suffix to the backup files if you wish.

    Matt

    --
    Please use reply-all for most replies to avoid omitting the mailing list.
    To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
    Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.9 (GNU/Linux)

    iEYEABECAAYFAkii9m8ACgkQC+xSYN/Rlfva9gCgnvsrCZw7gMDIDclP8W2Tjc1m
    pPwAnAwlBkZaBGZbLhhZyokcHC/H8K4P
    =oq3q
    -----END PGP SIGNATURE-----


+ Reply to Thread