crafty-vagrant icon indicating copy to clipboard operation
crafty-vagrant copied to clipboard

.gitignore backups and restore backups from separate directory?

Open nickautomatic opened this issue 9 years ago • 1 comments

Two problem with having backups in Git:

  1. Potential clashes with untracked files when pulling in on production server after downloading backup
  2. Repo size inflation

1 is a more serious problem. Occurred to me that if the db restore script didn't use Craft's own "backups" directory then it could be gitignored (and potentially backups could be stored as zips rather than raw SQL? In which case .sql files could be ignored and the script could restore the latest zip)

nickautomatic avatar Sep 02 '15 17:09 nickautomatic

Agreed, craft says you should ignore as well here.

chrisdubya avatar Jun 14 '16 21:06 chrisdubya