(feat) Another Remove --progress by default
Stdout cannot be entire if it contains too much data and the server doesn't have enough RAM
This commit is contained in:
@@ -80,11 +80,11 @@ class backup_rsync_btrfs(backup_generic):
|
|||||||
else:
|
else:
|
||||||
print(('btrfs subvolume create "%s"' %dest_dir))
|
print(('btrfs subvolume create "%s"' %dest_dir))
|
||||||
|
|
||||||
|
options = ['-rt', '--stats', '--delete-excluded', '--numeric-ids', '--delete-after', '--partial']
|
||||||
|
|
||||||
|
if self.logger.level == logging.DEBUG:
|
||||||
options = ['-rt','--stats','--delete-excluded','--numeric-ids','--delete-after']
|
self.logger.warning(f"[{self.backup_name}] Note that stdout cannot be entire if it contains too much data and the server doesn't have enough RAM !")
|
||||||
if self.logger.level:
|
options.append('--progress')
|
||||||
options.append('-P')
|
|
||||||
|
|
||||||
if self.dry_run:
|
if self.dry_run:
|
||||||
options.append('-d')
|
options.append('-d')
|
||||||
|
|||||||
@@ -862,9 +862,11 @@ class backup_generic(ABC):
|
|||||||
if not os.path.isdir(backup_dest):
|
if not os.path.isdir(backup_dest):
|
||||||
os.makedirs(backup_dest)
|
os.makedirs(backup_dest)
|
||||||
|
|
||||||
options = ['-aP','--stats','--delete-excluded','--numeric-ids','--delete-after']
|
options = ['-a', '--stats', '--delete-excluded', '--numeric-ids', '--delete-after', '--partial']
|
||||||
if self.logger.level:
|
|
||||||
options.append('-P')
|
if self.logger.level == logging.DEBUG:
|
||||||
|
self.logger.warning(f"[{self.backup_name}] Note that stdout cannot be entire if it contains too much data and the server doesn't have enough RAM !")
|
||||||
|
options.append('--progress')
|
||||||
|
|
||||||
if self.dry_run:
|
if self.dry_run:
|
||||||
options.append('-d')
|
options.append('-d')
|
||||||
|
|||||||
Reference in New Issue
Block a user