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

Backup? #2

Open
strarsis opened this issue Mar 31, 2017 · 5 comments
Open

Backup? #2

strarsis opened this issue Mar 31, 2017 · 5 comments

Comments

@strarsis
Copy link
Contributor

strarsis commented Mar 31, 2017

This script works really nice for transferring data between WordPress installations.
Is there also an example for using this script for backing up to tar/gzip,
ideally incrementally (important for the uploads files), with date/time stamps?
I plan to run the script in regular intervals for automated site backups
(from production site which holds the authoritative data).

@jasperf
Copy link
Owner

jasperf commented Apr 2, 2017

Yeah that would be good. Rsynch could probably be used for that. A lot on my plate though so not sure when I will have time to add the necessary commands to work on that..

@strarsis
Copy link
Contributor Author

strarsis commented Apr 2, 2017

@jasperf: This tool uses mysql dump + rsync for dumping the mysql database contents and transferring it together with the uploaded files. If the script could be modified to just pull these files into a directory or into a tar.gzip, or even to leverage the rsync incremental backup feature.

@jasperf
Copy link
Owner

jasperf commented Apr 6, 2017

Rsync should perform incremental backups by default. If you want to automate these backups you can read about that at https://www.maketecheasier.com/make-incremental-backups-with-rsync/ . And it uses compression using the -z in rsynch -az: -z, --compress compress file data during the transfer for transfer. Perhaps we could work on a piped command to gzip on the destination machine though.

@strarsis
Copy link
Contributor Author

strarsis commented May 11, 2017

@jasperf: Any news? This would be a great addition, also for automated remote backups with versioning. 🦄

@jasperf
Copy link
Owner

jasperf commented May 23, 2017

Been really busy working on Stedding - Ansible playbooks for Laravel LEMP Stack. If you have a suggested implementation @strarsis please do a PR. Thanks!

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

No branches or pull requests

2 participants