tar backuper cousin to rsync-backup
This commit is contained in:
@@ -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.",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user