Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
MikeHolly Posted September 2, 2017 Posted September 2, 2017 Could anybody give me some advice as to what folders I need to backup my board via SFTP please? I am using a backup 3rd party platform and it is requesting what folders should be backed up. Thanks in advance.
AndyF Posted September 2, 2017 Posted September 2, 2017 I tend to do them all, everything inside public_html or sometimes ~home if I have that option (as in all of it)
Adlago Posted September 2, 2017 Posted September 2, 2017 Agreed with @AndyF - only directory 'datastore' should not be
AndyF Posted September 2, 2017 Posted September 2, 2017 53 minutes ago, Adlago said: Agreed with @AndyF - only directory 'datastore' should not be Well I guess you could exclude the 'core files' directories, but I find it easier to just take the whole lot if practical.
Adlago Posted September 2, 2017 Posted September 2, 2017 From my experience in alpha tests - where backing backup is very common, I've found that only 'datastore' is superfluous. Very useful when backup files will be used - first remove all files from 'datastore' directory, then upload backup files ...
MikeHolly Posted September 4, 2017 Author Posted September 4, 2017 @Adlago I am receiving a lot of change reports when my backup report is run from the folder "datastore", would you suggest excluding the datastore folder from the original and subsequent backups, i.e. they will not be required if a restore is ever needed?
Adlago Posted September 4, 2017 Posted September 4, 2017 30 minutes ago, MikeHolly said: @Adlago I am receiving a lot of change reports when my backup report is run from the folder "datastore", would you suggest excluding the datastore folder from the original and subsequent backups, i.e. they will not be required if a restore is ever needed? This directory 'datastore' is used by various systems to save arbitrary data. You can delete all files in this directory - the system IPS 4.x,x restore it from database files. That's why you do not need a backup for this directory.
AndyF Posted September 4, 2017 Posted September 4, 2017 datastore is usually rebuilt as its temporary data. If its got a .htaccess or empty index.htm file in it, these two need to stay (the index file is quite likely to be present at least)
MikeHolly Posted September 4, 2017 Author Posted September 4, 2017 7 minutes ago, AndyF said: datastore is usually rebuilt as its temporary data. If its got a .htaccess or empty index.htm file in it, these two need to stay (the index file is quite likely to be present at least) Yes it does Andy, so I will leave that one there then. ....and thank you both again
AndyF Posted September 4, 2017 Posted September 4, 2017 No problem. I know you have your reasons for doing individual directories etc, but would it not be easier to just grab the suite directory complete ? /datastore is not usually too massive. Each to their own though. If your method works OK for you then I would not even suggest changing it. EDIT... I'm assuming you have something else to take a backup of the database yes ? As that is probably in 99% of cases more vital than any part of the filesystem, no database = no data.
Adlago Posted September 4, 2017 Posted September 4, 2017 I do backup files and databases only on the test site - when there are alpha tests. Because it is comparatively small and fast as a recovery time. My host maintains a backup server - every day at 3:00 ... I have a full backup for 7 days back. It is easy and convenient - and you do not think about it. If I have to do a backup manually, for all my account - wow I will be left without hair, which anyway is already white ... ha ha ...
MikeHolly Posted September 9, 2017 Author Posted September 9, 2017 @AndyF would it be be OK to not backup and totally remove the datastore folder from the backup and also EXCLUDE the .htaccess file contained in the datastore as well? Is that .htaccess file required if I ever need to install a backup?
AndyF Posted September 9, 2017 Posted September 9, 2017 You could ignore datastore. It will repopulate itself. The site might be a bit sluggish for a few moments though. The .htaccess file you can recreate anyway via the Security Center in the ACP (A good idea to do this regardless) via System > Security > "Protect writable folders from dangerous files" option. This will write .htaccess files into appropriate directories.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.