Skip to content
Snippets Groups Projects
Commit d6ec2b4e authored by intrigeri's avatar intrigeri
Browse files

Store duplicity cache to /var/cache/backupninja/duplicity.

... instead of previous /var/backups/duplicity.
parent 99434c8b
No related branches found
No related tags found
No related merge requests found
...@@ -11,8 +11,8 @@ version 0.9.8 -- UNRELEASED ...@@ -11,8 +11,8 @@ version 0.9.8 -- UNRELEASED
0.6.01 or newer, that depends on local caching (Closes: #572721) 0.6.01 or newer, that depends on local caching (Closes: #572721)
. Ignore anything but digits and "." when comparing versions . Ignore anything but digits and "." when comparing versions
(Closes: #578987) (Closes: #578987)
. Put archive directory (cache) into /var/backups/duplicity rather . Put archive directory (cache) into /var/cache/backupninja/duplicity
than the default /root/.cache/duplicity, unless the user rather than the default /root/.cache/duplicity, unless the user
has specified it (Closes: 580213) has specified it (Closes: 580213)
. Better example.dup documentation. Thanks, Alster! . Better example.dup documentation. Thanks, Alster!
. Added ftp_password option to securely transmit the FTP password . Added ftp_password option to securely transmit the FTP password
......
...@@ -3,8 +3,8 @@ backupninja (0.9.8-1) UNRELEASED ...@@ -3,8 +3,8 @@ backupninja (0.9.8-1) UNRELEASED
* duplicity 0.6.01 and later defaults to using an archive (cache) * duplicity 0.6.01 and later defaults to using an archive (cache)
directory, which was previously opt-in. Starting with backupninja directory, which was previously opt-in. Starting with backupninja
0.9.8, the backupninja duplicity handler puts this cache into 0.9.8, the backupninja duplicity handler puts this cache into
/var/backups/duplicity unless specified by the user with the "options" /var/cache/backupninja/duplicity unless specified by the user with
setting the *.dup job. the "options" setting the *.dup job.
When backups have been performed with backupninja older than 0.9.8 in When backups have been performed with backupninja older than 0.9.8 in
conjunction with duplicity 0.6.01 or later, e.g. when using Sid or conjunction with duplicity 0.6.01 or later, e.g. when using Sid or
Squeeze at certain times of the Squeeze release cycle, cache files Squeeze at certain times of the Squeeze release cycle, cache files
...@@ -12,7 +12,8 @@ backupninja (0.9.8-1) UNRELEASED ...@@ -12,7 +12,8 @@ backupninja (0.9.8-1) UNRELEASED
delete these files, or rather save bandwidth and just move the cache delete these files, or rather save bandwidth and just move the cache
directory to the new location: directory to the new location:
mv /root/.cache/duplicity /var/backups/ mkdir -p /var/cache/backupninja
mv /root/.cache/duplicity /var/cache/backupninja/
backupninja (0.9.7-1) UNRELEASED backupninja (0.9.7-1) UNRELEASED
......
...@@ -198,11 +198,11 @@ if [ -n "$tmpdir" ]; then ...@@ -198,11 +198,11 @@ if [ -n "$tmpdir" ]; then
fi fi
### Archive directory ### Archive directory
# duplicity >= 0.6.01 enables the archive_dir by default, let's put it into /var/backups # duplicity >= 0.6.01 enables the archive_dir by default, let's put it into /var/cache/backupninja/duplicity
# unless the user has specified it. # unless the user has specified it.
if [ "$duplicity_major" -ge 0 -a "$duplicity_minor" -ge 6 -a "$duplicity_sub" -ge 1 ]; then if [ "$duplicity_major" -ge 0 -a "$duplicity_minor" -ge 6 -a "$duplicity_sub" -ge 1 ]; then
if echo "${options}" | grep -qv -- "--archive-dir" ; then if echo "${options}" | grep -qv -- "--archive-dir" ; then
execstr_options="${execstr_options} --archive-dir /var/backups/duplicity" execstr_options="${execstr_options} --archive-dir /var/cache/backupninja/duplicity"
fi fi
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment