What files in `files` to include/exclude from version control
Permalink
Hi there,
I'm writing some automated backup scripts to monitor live changes and push them into version control and I'm wondering what files under the `files` directory I can ignore.
I need to include all files that would are required to checkout the system from scratch (with a synchronised db snapshot of course) and have the system run.
Currently I'm looked to exclude the following from the VCS.
files/backups (I have versioned db backups elsewhere and don't need these)
files/cache
files/tmp
files/trash
files/incoming
Does anyone know if ignoring any of these is going to be and issue?
Thanks & cheers
I'm writing some automated backup scripts to monitor live changes and push them into version control and I'm wondering what files under the `files` directory I can ignore.
I need to include all files that would are required to checkout the system from scratch (with a synchronised db snapshot of course) and have the system run.
Currently I'm looked to exclude the following from the VCS.
files/backups (I have versioned db backups elsewhere and don't need these)
files/cache
files/tmp
files/trash
files/incoming
Does anyone know if ignoring any of these is going to be and issue?
Thanks & cheers
I was just wondering the same thing and my files folder has a lot of numbered folders in it as well.
For what it's worth I've used the above settings and have been able to add a file in production then commit the files db dump and restore on dev without any hassle. Only limited testing at this stage however.