mirror of https://github.com/dswd/zvault
Usibility
This commit is contained in:
parent
8b859dddb9
commit
6841470981
|
@ -191,7 +191,7 @@ pub fn run() {
|
||||||
let backup = match repo.create_backup_recursively(&src_path, reference_backup.as_ref()) {
|
let backup = match repo.create_backup_recursively(&src_path, reference_backup.as_ref()) {
|
||||||
Ok(backup) => backup,
|
Ok(backup) => backup,
|
||||||
Err(RepositoryError::Backup(BackupError::FailedPaths(backup, _failed_paths))) => {
|
Err(RepositoryError::Backup(BackupError::FailedPaths(backup, _failed_paths))) => {
|
||||||
warn!("Some files are missing form the backup");
|
warn!("Some files are missing from the backup");
|
||||||
backup
|
backup
|
||||||
},
|
},
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
|
|
|
@ -340,6 +340,7 @@ impl Repository {
|
||||||
let chunks = match self.create_backup_recurse(&child_path, ref_child.as_ref(), backup, failed_paths) {
|
let chunks = match self.create_backup_recurse(&child_path, ref_child.as_ref(), backup, failed_paths) {
|
||||||
Ok(chunks) => chunks,
|
Ok(chunks) => chunks,
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
|
warn!("Failed to backup {:?}", child_path);
|
||||||
failed_paths.push(child_path);
|
failed_paths.push(child_path);
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue