Download .zip backup
Posted: Sun 9. Jan 2022, 03:39
Hello, how to download the backup as .zip? I have set-up a backup repository (sftp), and I want to download the full .zip instead of many RESTIC generic files.
Das offizielle KeyHelp Forum der Keyweb AG / The official KeyHelp forum of Keyweb AG
https://community.keyhelp.de/
Code: Select all
$ restic -r /srv/restic-repo dump -a zip latest /home/other/work > restore.zip
Thanks, there is a issue with the backup system (Debian 11.2, latest version of Keyhelp - clean install):Tobi wrote: ↑Sun 9. Jan 2022, 10:52 This only works actually via commandline.
Have a look at: https://restic.readthedocs.io/en/stable ... store.html
Code: Select all
$ restic -r /srv/restic-repo dump -a zip latest /home/other/work > restore.zip
Code: Select all
[09-Jan-2022 02:58:05] INFO --> Restore databases...
[09-Jan-2022 02:58:08] INFO --> Import database: roundcube
[09-Jan-2022 02:58:09] INFO --> Import database: phpmyadmin
[09-Jan-2022 02:58:09] INFO --> Import database: mysql
[09-Jan-2022 02:58:09] INFO --> Import database: keyhelp
[09-Jan-2022 02:58:09] INFO --> Import database: something_db1
[09-Jan-2022 02:58:09] INFO --> Import database: something_db3
[09-Jan-2022 02:58:09] INFO --> Import database: rainloop
[09-Jan-2022 02:58:09] INFO --> Cleanup
[09-Jan-2022 02:58:09] INFO --> Restore paths...
[09-Jan-2022 02:58:49] ERROR --> Failed to restore backup: ignoring error for /etc/systemd/user/sockets.target.wants/gpg-agent-ssh.socket: Symlink: symlink /usr/lib/systemd/user/gpg-agent-ssh.socket /etc/systemd/user/sockets.target.wants/gpg-agent-ssh.socket: file exists
ignoring error for /etc/systemd/user/sockets.target.wants/gpg-agent.socket: Symlink: symlink /usr/lib/systemd/user/gpg-agent.socket /etc/systemd/user/sockets.target.wants/gpg-agent.socket: file exists
ignoring error for /etc/xdg/systemd/user: Symlink: symlink ../../systemd/user /etc/xdg/systemd/user: file exists
ignoring error for /home/keyhelp/www/db-administration: Symlink: symlink phpmyadmin /home/keyhelp/www/db-administration: file exists
ignoring error for /home/keyhelp/www/kh.webstats/amar/202111/index.html: Symlink: symlink awstats.amar.html /home/keyhelp/www/kh.webstats/amar/202111/index.html: file exists
ignoring error for /home/keyhelp/www/kh.webstats/amar/202112/index.html: Symlink: symlink awstats.amar.html /home/keyhelp/www/kh.webstats/amar/202112/index.html: file exists
ignoring error for /home/keyhelp/www/kh.webstats/amar/202201/index.html: Symlink: symlink awstats.amar.html /home/keyhelp/www/kh.webstats/amar/202201/index.html: file exists
ignoring error for /home/keyhelp/www/roundcube/public_html/.htaccess: Symlink: symlink ../.htaccess /home/keyhelp/www/roundcube/public_html/.htaccess: file exists
ignoring error for /home/keyhelp/www/roundcube/public_html/plugins: Symlink: symlink ../plugins /home/keyhelp/www/roundcube/public_html/plugins: file exists
ignoring error for /home/keyhelp/www/roundcube/public_html/program/js: Symlink: symlink ../../program/js /home/keyhelp/www/roundcube/public_html/program/js: file exists
ignoring error for /home/keyhelp/www/roundcube/public_html/program/resources: Symlink: symlink ../../program/resources /home/keyhelp/www/roundcube/public_html/program/resources: file exists
ignoring error for /home/keyhelp/www/roundcube/public_html/skins: Symlink: symlink ../skins /home/keyhelp/www/roundcube/public_html/skins: file exists
ignoring error for /home/keyhelp/www/roundcube/vendor/bin/crypt-gpg-pinentry: Symlink: symlink ../pear/crypt_gpg/scripts/crypt-gpg-pinentry /home/keyhelp/www/roundcube/vendor/bin/crypt-gpg-pinentry: file exists
ignoring error for /home/keyhelp/www/webmail: Symlink: symlink roundcube /home/keyhelp/www/webmail: file exists
Fatal: There were 890 errors
[09-Jan-2022 02:58:49] INFO --> Final cleanup
[09-Jan-2022 02:58:50] INFO --> All finished, releasing lock.
====
[09-Jan-2022 03:13:02] INFO --> Create repository lock
[09-Jan-2022 03:13:03] INFO --> Looking for pending operations for repository: cloud2 (SFTP) / #2
[09-Jan-2022 03:13:03] INFO --> Operation found: check
[09-Jan-2022 03:13:03] INFO --> Integrity check
[09-Jan-2022 03:13:07] INFO --> Update snapshot data / stats
[09-Jan-2022 03:13:49] INFO --> Update repository stats
[09-Jan-2022 03:13:56] INFO --> Size 'raw': 2.23 GB
[09-Jan-2022 03:13:56] INFO --> Size 'restore': 2.87 GB
[09-Jan-2022 03:13:57] INFO --> All finished, releasing lock.
====
[09-Jan-2022 03:29:01] INFO --> Create repository lock
[09-Jan-2022 03:29:02] INFO --> Looking for pending operations for repository: cloud02.something.com (SFTP) / #3
[09-Jan-2022 03:29:02] INFO --> Operation found: check
[09-Jan-2022 03:29:02] INFO --> Integrity check
[09-Jan-2022 03:29:06] INFO --> Update snapshot data / stats
[09-Jan-2022 03:29:42] INFO --> Update repository stats
[09-Jan-2022 03:29:49] INFO --> Size 'raw': 2.23 GB
[09-Jan-2022 03:29:49] INFO --> Size 'restore': 2.87 GB
[09-Jan-2022 03:29:51] INFO --> All finished, releasing lock.
====
[09-Jan-2022 03:32:02] INFO --> Create repository lock
[09-Jan-2022 03:32:03] INFO --> Looking for pending operations for repository: cloud02.something.com (SFTP) / #3
[09-Jan-2022 03:32:03] INFO --> Operation found: restore
[09-Jan-2022 03:32:03] INFO --> Prepare restore...
[09-Jan-2022 03:32:03] INFO --> Restore email accounts...
[09-Jan-2022 03:32:06] INFO --> Extract email account: admin@something
[09-Jan-2022 03:32:06] INFO --> Extract email account: amar@something
[09-Jan-2022 03:32:06] INFO --> Extract email account: a@something
[09-Jan-2022 03:32:06] INFO --> Extract email account: amadex@something
[09-Jan-2022 03:32:06] INFO --> Extract email account: root@something
[09-Jan-2022 03:32:06] INFO --> Extract email account: info@something
[09-Jan-2022 03:32:06] INFO --> Extract email account: hostmaster@something
[09-Jan-2022 03:32:06] INFO --> Extract email account: ad@something
[09-Jan-2022 03:32:06] INFO --> Extract email account: amar@something
[09-Jan-2022 03:32:06] INFO --> Extract email account: info@something.at
[09-Jan-2022 03:32:06] INFO --> Extract email account: hostmaster@something.net
[09-Jan-2022 03:32:06] INFO --> Cleanup
[09-Jan-2022 03:32:06] INFO --> Restore databases...
[09-Jan-2022 03:32:09] INFO --> Import database: roundcube
[09-Jan-2022 03:32:09] INFO --> Import database: something_db2
[09-Jan-2022 03:32:09] ERROR --> Failed to restore database: something_db2
[09-Jan-2022 03:32:09] INFO --> Import database: phpmyadmin
[09-Jan-2022 03:32:10] INFO --> Import database: mysql
[09-Jan-2022 03:32:10] INFO --> Import database: keyhelp
[09-Jan-2022 03:32:10] INFO --> Import database: something_db1
[09-Jan-2022 03:32:10] INFO --> Import database: something_db3
[09-Jan-2022 03:32:10] INFO --> Import database: rainloop
[09-Jan-2022 03:32:10] INFO --> Cleanup
[09-Jan-2022 03:32:10] INFO --> Restore paths...
[09-Jan-2022 03:32:51] ERROR --> Failed to restore backup: ignoring error for /etc/systemd/user/sockets.target.wants/gpg-agent-ssh.socket: Symlink: symlink /usr/lib/systemd/user/gpg-agent-ssh.socket /etc/systemd/user/sockets.target.wants/gpg-agent-ssh.socket: file exists
ignoring error for /etc/systemd/user/sockets.target.wants/gpg-agent.socket: Symlink: symlink /usr/lib/systemd/user/gpg-agent.socket /etc/systemd/user/sockets.target.wants/gpg-agent.socket: file exists
ignoring error for /etc/xdg/systemd/user: Symlink: symlink ../../systemd/user /etc/xdg/systemd/user: file exists
ignoring error for /home/keyhelp/www/db-administration: Symlink: symlink phpmyadmin /home/keyhelp/www/db-administration: file exists
ignoring error for /home/keyhelp/www/kh.webstats/amar/202111/index.html: Symlink: symlink awstats.amar.html /home/keyhelp/www/kh.webstats/amar/202111/index.html: file exists
ignoring error for /home/keyhelp/www/kh.webstats/amar/202112/index.html: Symlink: symlink awstats.amar.html /home/keyhelp/www/kh.webstats/amar/202112/index.html: file exists
ignoring error for /home/keyhelp/www/kh.webstats/amar/202201/index.html: Symlink: symlink awstats.amar.html /home/keyhelp/www/kh.webstats/amar/202201/index.html: file exists
ignoring error for /home/keyhelp/www/roundcube/public_html/.htaccess: Symlink: symlink ../.htaccess /home/keyhelp/www/roundcube/public_html/.htaccess: file exists
ignoring error for /home/keyhelp/www/roundcube/public_html/plugins: Symlink: symlink ../plugins /home/keyhelp/www/roundcube/public_html/plugins: file exists
ignoring error for /home/keyhelp/www/roundcube/public_html/program/js: Symlink: symlink ../../program/js /home/keyhelp/www/roundcube/public_html/program/js: file exists
ignoring error for /home/keyhelp/www/roundcube/public_html/program/resources: Symlink: symlink ../../program/resources /home/keyhelp/www/roundcube/public_html/program/resources: file exists
ignoring error for /home/keyhelp/www/roundcube/public_html/skins: Symlink: symlink ../skins /home/keyhelp/www/roundcube/public_html/skins: file exists
ignoring error for /home/keyhelp/www/roundcube/vendor/bin/crypt-gpg-pinentry: Symlink: symlink ../pear/crypt_gpg/scripts/crypt-gpg-pinentry /home/keyhelp/www/roundcube/vendor/bin/crypt-gpg-pinentry: file exists
ignoring error for /home/keyhelp/www/webmail: Symlink: symlink roundcube /home/keyhelp/www/webmail: file exists
Fatal: There were 890 errors
[09-Jan-2022 03:32:51] INFO --> Final cleanup
[09-Jan-2022 03:32:52] INFO --> All finished, releasing lock.
====
[09-Jan-2022 04:30:18] INFO --> Create repository lock
[09-Jan-2022 04:30:20] INFO --> Restic lock released
[09-Jan-2022 04:30:20] INFO --> Looking for pending operations for repository: cloud02.something.com (SFTP) / #1
[09-Jan-2022 04:30:21] INFO --> All finished, releasing lock.