aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2014-05-03 13:20:21 +0000
committerintrigeri <intrigeri@boum.org>2014-05-03 13:20:21 +0000
commit9e1d98a2532be9148b4e355b26a94792e13684b2 (patch)
treef63fb3aeff48569a974f841ef9146dedb276da18
parent8ed2f8de3fda6531a3f737e4f6f92fe7f864a546 (diff)
parent230c96d9d4e2651d8b301f3fed6be08bf29036cd (diff)
downloadbackupninja-9e1d98a2532be9148b4e355b26a94792e13684b2.tar.gz
backupninja-9e1d98a2532be9148b4e355b26a94792e13684b2.tar.bz2
Merge remote-tracking branch 'sarava/bug/3929'
-rw-r--r--handlers/rsync.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/handlers/rsync.in b/handlers/rsync.in
index b2c4b59..13399c9 100644
--- a/handlers/rsync.in
+++ b/handlers/rsync.in
@@ -455,6 +455,8 @@ function rotate_long {
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/
@@ -466,6 +468,8 @@ function rotate_long {
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/
@@ -578,6 +582,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/
@@ -589,6 +595,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/