summaryrefslogtreecommitdiff
path: root/lib/backup/files.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into incremental-backupsFrederic Van Espen2019-03-071-2/+8
|\
| * Modify file restore to rectify tar issueJason Colyer2019-01-171-1/+1
| | | | | | | | | | Fixed typo in run_pipeline! function -> Open3.pieline to Open3.pipeline
| * Modify file restore to rectify tar issueJason Colyer2019-01-171-6/+4
| | | | | | | | | | | | | | Adjusted run_pipeline! function to match rubocop syntax requirements Adjusted run_pipeline! function to use variable instead of string interpolation
| * Modify file restore to rectify tar issueJason Colyer2019-01-171-6/+4
| | | | | | | | | | | | Changed run_pipeline! function to have use $ in regex Changed run_pipeline! function to use Open3.pipeline instead of Open3.pipeline_start
| * Modified files.rb to handle tar errorJason Colyer2019-01-161-2/+12
| | | | | | | | | | | | | | | | Changed the run_pipeline! function to instead use Open3.pipeline_start In doing so, the code is able to grab the last STDERR. In the case where the error is the one from older tar versions (relating to ./), it will not raise a Backup::Error. All other instances of command failure will result in Backup::Error being raised.
* | introduce optional rsyncable flagFrederic Van Espen2019-03-071-2/+2
| |
* | set the --rsyncable option for gzipFrederic Van Espen2018-12-261-2/+2
|/
* Enable frozen string in lib/api and lib/backupgfyoung2018-09-291-0/+2
| | | | | | | | | | Partially addresses #47424. Had to make changes to spec files because stubbing methods on frozen objects is a mess in RSpec and leads to failures: https://github.com/rspec/rspec-mocks/issues/1190
* Consistently use tar lookup functionJacob Vosmaer2018-06-071-3/+8
|
* Find and mark more Git disk access locationsJacob Vosmaer (GitLab)2018-06-051-3/+7
|
* Describe workaround when restore fails because of `Errno::EBUSY`Bob Van Landuyt2018-04-231-0/+2
| | | | | | When `Errno::EBUSY` is raised during restore, this could indicate that the directory being restored into is a mountpoint. In this case we explain the user how to retry the restore.
* Move existing dirs to a temp location while restoreBalasankar "Balu" C2018-03-301-4/+14
| | | | | | | Instead of renaming existing storage directories to a timestamped format, create a timestamped directory in a temporary location and move the individual files and folders inside storage directories to it. This helps us with nested storage directories.
* Ignore "lost+found" folder during backup on a volumejulien MILLAU2017-12-201-3/+3
|
* Don’t exclude some file in lib from rubocopDouwe Maan2017-02-231-4/+4
|
* # This is a combination of 2 commits.Drew Blessing2017-02-211-1/+16
| | | | | | | | | | | | | | | | | | # This is the 1st commit message: Add `copy` backup strategy to combat file changed errors The backup Rake task used to stream data directly from the live data directory into the backup. Under many circumstances this worked OK. However, really active instances would experience a 'file changed as we read it' error - especially with data like the registry. This now copies the data first, then compresses it. It will take a bit more disk space while the backup is in progress, but it's a necessary thing. # The commit message #2 will be skipped: # Add env var
* Use `File::exist?` instead of `File::exists?`bogdanvlviv2016-08-111-1/+1
| | | | Since version ruby-2.2.0, method `File::exists?` is deprecated.
* Do no rely on basename of builds, uploadsbackup-improvementsJacob Vosmaer2015-10-161-4/+5
|
* Remove unused variableJacob Vosmaer2015-10-061-3/+2
|
* Remove old "files" tarball explicitlyJacob Vosmaer2015-10-061-0/+1
|
* Use tar for intermediate backup storageJacob Vosmaer2015-10-061-0/+39
During the backup we create an intermediate copy of two directories: builds and uploads. Instead of creating many small files with 'cp -r', we now use tar (and fast gzip) to create single intermediate files. This saves on disk IO and disk space while creating a backup.