Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
backupninja
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Liberate
backupninja
Commits
f351306d
Commit
f351306d
authored
13 years ago
by
intrigeri
Browse files
Options
Downloads
Patches
Plain Diff
dup: add support for RackSpace's CloudFiles.
Thanks to Yuval Kogman <nothingmuch@woobling.org> for the patch.
parent
25ad989f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
AUTHORS
+1
-0
1 addition, 0 deletions
AUTHORS
ChangeLog
+2
-0
2 additions, 0 deletions
ChangeLog
examples/example.dup
+10
-0
10 additions, 0 deletions
examples/example.dup
handlers/dup.helper.in
+10
-0
10 additions, 0 deletions
handlers/dup.helper.in
handlers/dup.in
+16
-0
16 additions, 0 deletions
handlers/dup.in
with
39 additions
and
0 deletions
AUTHORS
+
1
−
0
View file @
f351306d
...
...
@@ -41,3 +41,4 @@ Sergio Talens-Oliag <sto@debian.org> -- pipefail fixes
Bruno Bigras <bigras.bruno@gmail.com> -- enable tar handler in the build system
aihtdikh -- Allow 'when = XXX' with spaces in .sh files.
Chris Lamb <lamby@debian.org> -- rdiff.helper bugfix
Yuval Kogman <nothingmuch@woobling.org> -- RackSpace's CloudFiles support for duplicity
This diff is collapsed.
Click to expand it.
ChangeLog
+
2
−
0
View file @
f351306d
...
...
@@ -3,6 +3,8 @@ version 1.0 -- UNRELEASED
dup:
. Make the .dup generated by ninjahelper more consistent with
example.dup.
. Add support for RackSpace's CloudFiles.
Thanks to Yuval Kogman <nothingmuch@woobling.org> for the patch.
version 0.9.10 -- September 23, 2011
backupninja changes
...
...
This diff is collapsed.
Click to expand it.
examples/example.dup
+
10
−
0
View file @
f351306d
...
...
@@ -194,6 +194,16 @@ exclude = /var/cache/backupninja/duplicity
# awsaccesskeyid =
# awssecretaccesskey =
## RackSpace's CloudFiles username, API key, and authentication URL.
## cfusername = YOUR_CF_USERNAME
## cfapikey = YOUR_CF_API_KEY
## cfauthurl = YOUR_CF_AUTH_URL
##
## Default:
# cfusername =
# cfapikey =
# cfauthurl =
## FTP password, needed for backups using desturl = ftp://...
##
## Default:
...
...
This diff is collapsed.
Click to expand it.
handlers/dup.helper.in
+
10
−
0
View file @
f351306d
...
...
@@ -454,6 +454,16 @@ keepincroffulls = $dup_keepincroffulls
#awsaccesskeyid = YOUR_AWS_ACCESS_KEY_ID
#awssecretaccesskey = YOUR_AWS_SECRET_KEY
## RackSpace's CloudFiles username, API key, and authentication URL.
## cfusername = YOUR_CF_USERNAME
## cfapikey = YOUR_CF_API_KEY
## cfauthurl = YOUR_CF_AUTH_URL
##
## Default:
# cfusername =
# cfapikey =
# cfauthurl =
# FTP password, needed for backups using desturl = ftp://...
#ftp_password =
...
...
This diff is collapsed.
Click to expand it.
handlers/dup.in
+
16
−
0
View file @
f351306d
...
...
@@ -30,6 +30,9 @@ getconf keepincroffulls all
getconf desturl
getconf awsaccesskeyid
getconf awssecretaccesskey
getconf cfusername
getconf cfapikey
getconf cfauthurl
getconf ftp_password
getconf sshoptions
getconf bandwidthlimit 0
...
...
@@ -46,6 +49,9 @@ destdir=${destdir%/}
if
[
"
`
echo
$desturl
| @AWK@
-F
':'
'{print $1}'
`
"
==
"s3+http"
]
;
then
[
-n
"
$awsaccesskeyid
"
-a
-n
"
$awssecretaccesskey
"
]
||
fatal
"AWS access keys must be set for S3 backups."
fi
if
[
"
`
echo
$desturl
| @AWK@
-F
':'
'{print $1}'
`
"
==
"cf+http"
]
;
then
[
-n
"
$cfusername
"
-a
-n
"
$cfapikey
"
]
||
fatal
"Cloudfiles access keys must be set for S3 backups."
fi
if
[
"
`
echo
$desturl
| @AWK@
-F
':'
'{print $1}'
`
"
==
"ftp"
]
;
then
[
-n
"
$ftp_password
"
]
||
fatal
"ftp_password must be set for FTP backups."
fi
...
...
@@ -232,6 +238,16 @@ if [ "`echo $desturl | @AWK@ -F ':' '{print $1}'`" == "s3+http" ]; then
export
AWS_SECRET_ACCESS_KEY
=
"
$awssecretaccesskey
"
fi
### If desturl is a RackSpace's CloudFiles URL export the relevant
### environment variables
if
[
"
`
echo
$desturl
| @AWK@
-F
':'
'{print $1}'
`
"
==
"cf+http"
]
;
then
export
CLOUDFILES_USERNAME
=
"
$cfusername
"
export
CLOUDFILES_APIKEY
=
"
$cfapikey
"
if
[
-n
"
$cfauthurl
"
]
;
then
export
CLOUDFILES_AUTHURL
=
"
$cfauthurl
"
fi
fi
### Cleanup commands (duplicity >= 0.4.4)
# cleanup
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment