I didn't see any backup script module for Silverstripe that export database and assets folder into compressed folders. Is anyone have a custom PHP script and execute it with cron job?
Asked
Active
Viewed 226 times
4
-
1Have you tried https://github.com/DarrenInwood/silverstripe-backup? – 3dgoo Oct 27 '15 at 03:27
1 Answers
6
There is SSPak, which does exactly what you describe: secure assets as tgz and dump Database.
It can also push the dump on an external server.
You can install it using curl:
curl -sS https://silverstripe.github.io/sspak/install | php -- /usr/local/bin
and then e.g. run
sspak save /var/www /tmp/site.sspak
or grab data from a remote server like
sspak save me@prodserver:/var/www prod-site.sspak
When working remotely you'd need ssh keys or you will be asked for your password a couple of times.

wmk
- 4,598
- 1
- 20
- 37