Skip to content

Script to restore files stored by Synology on Amazon Glacier

License

Notifications You must be signed in to change notification settings

ryanschulze/synology-glacier-restore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

synology-glacier-restore

The Synology Glacier Backup app has a nice gui to backup and restore files from a Synology NAS to Amazon glacier (as a low cost offsite backup). While it provides sufficient possibilities to restore files that were backed up, it is important to consider a worst case scenario where the synology device probably can't be used to restore files any more. The application renames the files it backups to 138 character long random file names. It then stores the mapping "random file name" to "path and real file name" in a sqlite3 database (in a seperate vault with the suffix '_mapping'). This makes it not quite straightforward or simple to restore a synology backup on glacier with other tools.

This script reads the sqlite3 database, rebuilds the directory structure, and copies the files from the "random" format over to the "real" filename. It assumes you have already downloaded the 2 vaults (one with the backed up files, one with the mapping database) and they can be accessed locally.

Usage:

./unpack_glacier.sh <mapping_file> <encoded_files_directory> <destination_deirectory>

ToDo List

  • getopts instead of fixed positional arguments
  • chose which action to to (copy,move,print)
  • only work on specific paths of the backup

About

Script to restore files stored by Synology on Amazon Glacier

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages