Download .zip backup  [SOLVED]

Discussions about the usage of KeyHelp.
Post Reply
User avatar
Amadex
Posts: 17
Joined: Tue 15. Dec 2020, 05:22
Contact:

Download .zip backup

Post by Amadex »

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.
User avatar
Tobi
Community Moderator
Posts: 2813
Joined: Thu 5. Jan 2017, 13:24

Re: Download .zip backup  [SOLVED]

Post by Tobi »

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

Gruß,
Tobi


-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
User avatar
Amadex
Posts: 17
Joined: Tue 15. Dec 2020, 05:22
Contact:

Re: Download .zip backup

Post by Amadex »

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

Thanks, there is a issue with the backup system (Debian 11.2, latest version of Keyhelp - clean install):

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.
And this restore is stuck since yesterday:
Image
User avatar
Alexander
Keyweb AG
Posts: 3813
Joined: Wed 20. Jan 2016, 02:23

Re: Download .zip backup

Post by Alexander »

It is not stuck - it is more like a visual imperfection:

When you have clicked the checkbox to restore the KeyHelp database, it also restores all the content and settings in there from the time it was backed up. In particular, the KeyHelp was backed up while being at 75% preparation.

-> click on repository management -> select the repository -> click on save to trigger the re-read of the repository and its snapshots in this case.

Regarding the errors in the log, there is an open issue for Restic: https://github.com/restic/restic/issues/2578
To work around this: simply ignore the error, or exclude the paths when creating the restore operation.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
Amadex
Posts: 17
Joined: Tue 15. Dec 2020, 05:22
Contact:

Re: Download .zip backup

Post by Amadex »

Restic gives me headache, but somehow it's a better backup solution than the classic one (full unsecure zip).
User avatar
Martin
Posts: 984
Joined: Wed 20. Jan 2016, 00:43

Re: Download .zip backup

Post by Martin »

The classic one could be encrypted with a password too. If a password was set, this was used by 7zip to perform AES256 encryption of the backup archive.
Viele Grüße,
Martin
Post Reply