Jump to content

ssh script Rsync database and files backup project


Taleeia

Recommended Posts

I am going to rsync every day my webservers files to a offsite (at the office copy) using a sshkey. I want a basic backup and only want the files I require to make the store work with the database most recent backup.

Installation type : Is for any  meaning new or Updating existing i am using version Prestashop v1.7.7.3 for reference
PrestaShop version: this should not matter beyond --exclude= directories possibly
Theme (default/customized):this should not matter
Code (original/modified):this should not matter
Hosting: you will need ssh access
PHP version: 7.3
MySQL version: v5 +
Browser(s) concerned: not important

I am looking for people who already do this or at least know what directories are unnecessary to copy like

/web/var/logs    logs are not necessary to make my server work although some might want this for some reason I choose to exclude them
web/var/cache    will regenerate when its needed
/web/admin/autoupgrade/backup    When i do a backup I might keep this but for daily rsync waste of time space and bandwidth

are there some files i do not need to backup or unnecessary or directories?



 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...