Home | History | Annotate | Download | only in util

Lines Matching refs:backup

42   //    attempt to backup dest_path_ and replace it with src_path_. This will
45 // Generate a backup path that can keep the original files under dest_path_.
47 PLOG(ERROR) << "Failed to get backup path in folder "
51 base::FilePath backup = backup_path_.path().Append(dest_path_.BaseName());
57 // source files to the temp folder as backup.
58 if (base::Move(source_path_, backup)) {
61 << " to backup path " << backup.value();
64 // We failed to move the source tree to the backup path. This is odd
66 LOG(ERROR) << "Failed to backup source " << source_path_.value()
67 << " to backup path " << backup.value()
77 if (base::Move(dest_path_, backup)) {
80 << " to backup path " << backup.value();
83 << " to " << backup.value();
107 base::FilePath backup = backup_path_.path().Append(dest_path_.BaseName());
108 if (moved_to_backup_ && !base::Move(backup, dest_path_)) {
109 LOG(ERROR) << "failed move " << backup.value()
113 if (source_moved_to_backup_ && !base::Move(backup, source_path_)) {
114 LOG(ERROR) << "Can not restore " << backup.value()