trellis-sync icon indicating copy to clipboard operation
trellis-sync copied to clipboard

Backup?

Open strarsis opened this issue 8 years ago • 5 comments
trafficstars

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).

strarsis avatar Mar 31 '17 20:03 strarsis

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..

jasperf avatar Apr 02 '17 06:04 jasperf

@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.

strarsis avatar Apr 02 '17 12:04 strarsis

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.

jasperf avatar Apr 06 '17 06:04 jasperf

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

strarsis avatar May 11 '17 22:05 strarsis

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

jasperf avatar May 23 '17 16:05 jasperf