Restoring files with Duply

From sshcWiki
Revision as of 21:45, 31 July 2013 by Cswingler (talk | contribs) (How to restore the bits and bytes and stuff, draft.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Background

We use Duply (http://duply.net) for backing up our important data to Amazon S3. Currently, backups are scheduled to run once a night, taking incrementals daily.

Restoring

Presuming you've got a clean system, you can start restoring by doing this:

  • Install Duply (for CentOS this will be adding the EPEL repo, and then yum -y install duply)
  • Log onto our S3 store (officers have the credentials), and navigate to the duply_metadata directory. These are copies of our backup config files/scripts as they existed on the system.
  • Copy all of the directories in there into /etc/duply on the new system you're restoring to.
  • Make a directory named /restore/
  • Run "duply <targetname> restore /restore/"

Duply has some other options to restore from specific points in time, these are left as an exercise for the reader.

Troubleshooting

Duply crashes inexplicably, or silently fails, if the S3 credentials are incorrect. If you're getting a CollectionError exception, or the restore finds no information, check that your credentials on the TARGET line are up to date. Create a new credential set if you're in doubt, and verify that you can connect using another client (like Cyberduck).