tar backuper cousin to rsync-backup

This commit is contained in:
Q
2023-10-21 22:19:41 +03:00
parent ec1c5f249e
commit 71ce8d182f
2 changed files with 39 additions and 20 deletions

View File

@@ -103,7 +103,9 @@ class RSB:
if os.path.exists(tgt_dir):
raise FileExistsError("Folder {} already exists".format(tgt_dir))
subprocess.call(["cp", "-ldr", "--preserve=xattr", self.current, tgt_dir], shell=False)
subprocess.call(
["cp", "-ldr", "--preserve=xattr", self.current, tgt_dir], shell=False
)
def make_backup(self):
if self.options.no_backup:
@@ -123,7 +125,6 @@ class RSB:
return success
def write_config(self):
conf = json.dumps(vars(self.options))
with open(self.config_file, "wt") as fp:
fp.write(
@@ -164,7 +165,6 @@ rsync-backup \\
def get_opts():
parser = ArgumentParser(
description="Minimal incrementive backup utility using rsync and hard links.",
)