Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to backup and restore freescout #2568

Closed
sainiaj opened this issue Jan 18, 2023 · 9 comments
Closed

How to backup and restore freescout #2568

sainiaj opened this issue Jan 18, 2023 · 9 comments

Comments

@sainiaj
Copy link

sainiaj commented Jan 18, 2023

Hello i am changing hosting VPS provider and was wondering what are the recommended/official method for backing up everything
purchased modules, data settings etc

Thank you

@pf248
Copy link

pf248 commented Jan 18, 2023

As FS is very lightweigth you can just make a copy of the FS file directory (e.g. /var/www/html/ or whereever your installation is (in this folder there are all the config files and also the module files, etc.). In addition, you can make a database export (e.g. via mysql dump). Then you can zip/tar the two parts of FS and transfer them to a location of your choice. We automated this via a crontab on our ubuntu server to make a backup everyday.

Restore can be done the same way, just move/copy the backup files to the location of your "broken" installation and override all the files. Then do a sql dump in the other direction and FS is up. (When you restore on another server you also have to make sure the requirements such as php are matching and the webserver is configured correctly (here you could also make a copy of the apache/nginx file and transfer it))

Hope this helps you little bit.

@freescout-helpdesk
Copy link
Contributor

@pf248 thanks for helping out.

@fulldecent
Copy link
Contributor

Perhaps this issue can live on as a discussion.

OLD TOPIC: Add a button inside FreeScout for performing backup and restore

NEW TOPIC: Create a documentation to post at https://github.com/freescout-helpdesk/freescout/wiki (under CONFIGURATION) of how to perform a backup/restore


This should be compatible with the default, first-option recommend installation instructions at https://github.com/freescout-helpdesk/freescout/wiki/Installation-Guide

@freescout-helpdesk
Copy link
Contributor

https://github.com/freescout-helpdesk/freescout/wiki/FAQ#how-to-backup-and-restore-the-freescout

@sainiaj
Copy link
Author

sainiaj commented Jan 19, 2023

@freescout-helpdesk Yes as mentioned by @fulldecent in the future please implement backup and restore feature it is a must, i cannot even backup the sql as i don't have the password saved,

until then please make official documentation how to use msql dump cmd and save
new install > restore > and apply ?

@aj-saini
Copy link

@pf248 pf248
Would it be possible to share the script
you use to backup your free scout daily to ubuntu server - i would like to setup something like that as well

Thank you

@pf248
Copy link

pf248 commented Feb 11, 2023

@aj-saini Yes, of course. I took the backup & restore scripts from here: https://codeberg.org/DecaTec/Wordpress-Backup-Restore

It is for wordpress, but you can just change the parameters in the shell scripts to your data (like db-user, password, path to the installation, backup directory, etc.). It is all described in the files, quite easy. The backup script does a copy of the installation directory and also a sql datebase dump. You can control how many backups you want to keep and the backup script automatically deletes all backups older then a specific amount (e.g. keep the last 10 backups).

Then you just set up a crontab on your ubuntu system to execute the backup.sh (e.g. every night at 1:00). Command could be sth like:

  • 1 * * * cd /path_to_file && ./backup.sh

The backup.sh must be executable for this, you can do this via chmod +x.

Hope this helps you a bit.

@semaf
Copy link

semaf commented Mar 22, 2024

Why is the documentation for backup so poor? The documenation is forwarding to an external wordpress backup script which has to be edited to get it working.

There is nothing for docker to backup.

Why not a backup modul that connects over SFTP, SSH, WEBDAV, RSYNC, RCLONE, BORG, BORGMATIC etc.. ?

@NBSUKLTD
Copy link

Agreed a freescout backup module with scheduling and remote SFTP, FTP, S3 storage options would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants