diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-05-09 19:27:46 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-05-09 19:27:46 -0300 |
commit | 230c96d9d4e2651d8b301f3fed6be08bf29036cd (patch) | |
tree | f01bdf2635489745491b7f20865fc588bab132c0 | |
parent | c9aa8b1d6f809ab672032a020a476185d095de3c (diff) | |
download | backupninja-bug/3929.tar.gz backupninja-bug/3929.tar.bz2 |
Update increment folder date (#3929)bug/3929
-rw-r--r-- | handlers/rsync.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/handlers/rsync.in b/handlers/rsync.in index 884a885..e624e6f 100644 --- a/handlers/rsync.in +++ b/handlers/rsync.in @@ -447,6 +447,8 @@ function rotate_long { echo "Debug: daily.$max --> weekly.1" $nice mv $backuproot/daily.$max $backuproot/weekly.1 mkdir -p $backuproot/metadata/weekly.1 + # Update increment folder date and setup metadata + $touch $backuproot/weekly.1 date +%c%n%s > $backuproot/metadata/weekly.1/rotated #if [ -f $backuproot/metadata/daily.$max/created ]; then # $nice mv $backuproot/metadata/daily.$max/created $backuproot/metadata/weekly.1/ @@ -458,6 +460,8 @@ function rotate_long { echo "Debug: weekly.$max --> monthly.1" $nice mv $backuproot/weekly.$max $backuproot/monthly.1 mkdir -p $backuproot/metadata/monthly.1 + # Update increment folder date and setup metadata + $touch $backuproot/monthly.1 date +%c%n%s > $backuproot/metadata/monthly.1/rotated #if [ -f $backuproot/metadata/weekly.$max/created ]; then # $nice mv $backuproot/metadata/weekly.$max/created $backuproot/metadata/weekly.1/ @@ -565,6 +569,8 @@ function rotate_long_remote { echo "Debug: daily.\$max --> weekly.1" $nice mv $backuproot/daily.\$max $backuproot/weekly.1 mkdir -p $backuproot/metadata/weekly.1 + # Update increment folder date and setup metadata + $touch $backuproot/weekly.1 date +%c%n%s > $backuproot/metadata/weekly.1/rotated #if [ -f $backuproot/metadata/daily.\$max/created ]; then # $nice mv $backuproot/metadata/daily.\$max/created $backuproot/metadata/weekly.1/ @@ -576,6 +582,8 @@ function rotate_long_remote { echo "Debug: weekly.\$max --> monthly.1" $nice mv $backuproot/weekly.\$max $backuproot/monthly.1 mkdir -p $backuproot/metadata/monthly.1 + # Update increment folder date and setup metadata + $touch $backuproot/monthly.1 date +%c%n%s > $backuproot/metadata/monthly.1/rotated #if [ -f $backuproot/metadata/weekly.\$max/created ]; then # $nice mv $backuproot/metadata/weekly.\$max/created $backuproot/metadata/weekly.1/ |