[prev in list] [next in list] [prev in thread] [next in thread]
List: rsync
Subject: Rsync creates empty directories with backup-dir option
From: Pierre Willaime <pierre.willaime () protonmail ! ch>
Date: 2015-07-15 8:44:55
Message-ID: 56be4700d39efe899dbeaed422bf502e () protonmail ! ch
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
[Attachment #4 (text/plain)]
With rsync 3.1.1 (on debian), using the "backup-dir" option creates a tree of empty \
folders inside the backup repository. This doesn't affect the transfer (all files and \
folder are copied anyway).
Example:
----
rsync -rtvhPx --delete --stats --exclude-from=/home/pierre/scripts/ExclusionRSync \
--backup --backup-dir=/media/pierre/g2/sauvegardes/fichiers_supprimes_pierre \
/home/pierre/ /media/pierre/g2/sauvegardes/sauvegarde_pierre
----
The previous command (launched the first time) recreates the whole structure of \
folders inside the "/media/pierre/g2/sauvegardes/fichiers_supprimes_pierre" \
backup-dir). These folders are empty and the files are present in \
"/media/pierre/g2/sauvegardes/sauvegarde_pierre"(destination).
It seems to be a bug because the backup directory should contains something if, and \
only if, I delete files or folder. But it is impossible to delete something during \
the first backup; nonetheless, the backup-dir is full of empty folder after the first \
call of rsync.
There are two unanswered messages on Unix.SE describing this bug ([1] and [2]). A \
quick search into this mailing list archives [3] doesn't show emails related to this \
question.
[1] http://unix.stackexchange.com/questions/150378/rsync-3-1-0-is-creating-empty-backup-directories
[2] http://unix.stackexchange.com/questions/186798/rsync-backup-dir-creates-empty-folders-in-backup-dir
[3] http://www.mail-archive.com/search?l=rsync%40lists.samba.org&q=backup+create+empty+folders&a=1
[Attachment #5 (text/html)]
<div>With rsync 3.1.1 (on debian), using the "backup-dir"
option creates a tree of empty folders inside the backup repository.
This doesn't affect the transfer (all files and folder are copied
anyway).<br></div><div><br></div><div>Example:<br></div><div>---- \
<br></div><div>rsync
-rtvhPx --delete --stats
--exclude-from=/home/pierre/scripts/ExclusionRSync --backup
--backup-dir=/media/pierre/g2/sauvegardes/fichiers_supprimes_pierre
/home/pierre/ /media/pierre/g2/sauvegardes/sauvegarde_pierre<br></div><div>----<br></div><div>The
previous command (launched the first time) recreates the whole
structure of folders inside the
"/media/pierre/g2/sauvegardes/fichiers_supprimes_pierre" backup-dir).
These folders are empty and the files are present in
"/media/pierre/g2/sauvegardes/sauvegarde_pierre"(destination).<br></div><div><br></div><div>It
seems to be a bug because the backup directory should contains
something if, and only if, I delete files or folder. But it is
impossible to delete something during the first backup; nonetheless, the
backup-dir is full of empty folder after the first call of \
rsync.<br></div><div><br></div><div>There are two unanswered messages on Unix.SE \
describing this bug ([1] and [2]). A quick search into this mailing list archives \
[3] doesn't show emails related to this question.<br></div><div><br></div><div>[1] \
<a href="http://unix.stackexchange.com/questions/150378/rsync-3-1-0-is-creating-empty- \
backup-directories">http://unix.stackexchange.com/questions/150378/rsync-3-1-0-is-creating-empty-backup-directories</a><br></div><div>[2] \
<a href="http://unix.stackexchange.com/questions/186798/rsync-backup-dir-creates-empty \
-folders-in-backup-dir">http://unix.stackexchange.com/questions/186798/rsync-backup-dir-creates-empty-folders-in-backup-dir</a><br></div><div>[3] \
<a href="http://www.mail-archive.com/search?l=rsync%40lists.samba.org&q=backup+cre \
ate+empty+folders&a=1">http://www.mail-archive.com/search?l=rsync%40lists.samba.org&q=backup+create+empty+folders&a=1</a><br></div><div><br></div>
--
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic