Skip to content

Automatically upload last backup tar to the server #1909

Closed Answered by bttrx
Hariko50 asked this question in Help
Discussion options

You must be logged in to vote

@Hariko50 Publii is no backup software. As a workaround you could create a script for starting Publii and include a command similar to this. (I'm assuming Linux here.)

tar -cf SITENAME-$(date +%Y-%m-%d-%H-%M-%S).tar -C /home/USERNAME/Dokumente/Publii/sites/SITENAME input

(You have to modify SITENAME & USERNAME to match your system. 'Dokumente' maybe too.)
This will create a timestamped .tar file to the current folder.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@michaelfluegge
Comment options

@Hariko50
Comment options

@michaelfluegge
Comment options

@bttrx
Comment options

Answer selected by Hariko50
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants