There isn't any documentation for backing up and restoring the gallery. You would want to save a copy of the connections folder, the images folder and the database. Everything else shouldn't have changed from the default files. To restore, you would want to upload the default files to the server, and then replace those two directories and then import the database again as well.