Skip to content

Instantly share code, notes, and snippets.

@bendilley
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bendilley/95d4d7e54bac0a9c3794 to your computer and use it in GitHub Desktop.
Save bendilley/95d4d7e54bac0a9c3794 to your computer and use it in GitHub Desktop.
Mozy backup and restore with Linux servers

Backup to Mozy

sudo mozyutil activate --email hostname@skillstream.co.uk
  • Add users to mozyadmin user group to allow them to run mozyutil without sudo access:
sudo usermod -aG mozyadmin ben
  • Add backup locations and start backing up:
mozyutil addbackupdirs --path /home/mozy/Documents ~/Pictures
mozyutil listbackupdirs  # to confirm
mozyutil continuous on   # triggers an initial sync and then backs-up all changes

To see all available options:

man mozyutil

Restore from Mozy

  • Head to https://www.mozypro.com/user?module=machine-list
  • Pick the machine you want to restore the files from
  • Choose Restore Files from the top-right of that panel
  • Select the folders/files you want to retrieve
  • If you've selected more than one, you'll be given some Actions to choose from
  • Choose Large Download Options for any significant restore
  • After choosing a name for the restore, choose Download Compressed Archives (Mozy Restore Manager is Mac/Windows only)
  • You'll get an email with the link to view the restores - follow the link
  • Right-click on Download Restore to copy the link
  • On the target machine, wget that url - it'll download a tar file (restore_2015_07_16_09_57_5389797.tar in this example)
  • You can use tar -tf restore_2015_07_16_09_57_5389797.tar to list the contents
  • If you're happy to restore to the exact same absolute path as the original you can add the -P flag to preserve the leading /. If not, you can restore to the current folder and move folders/files from there.
  • Restore using sudo tar -xfPv restore_2015_07_16_09_57_5389797.tar (extract from file, Preserving leading /, verbosely listing the files as they're processed)
  • Done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment