do not try to preserve everything

This commit is contained in:
Ville Rantanen
2023-01-02 14:39:33 +02:00
parent 70baeb44c0
commit 70b553c227

View File

@@ -103,7 +103,7 @@ class RSB:
if os.path.exists(tgt_dir): if os.path.exists(tgt_dir):
raise FileExistsError("Folder {} already exists".format(tgt_dir)) raise FileExistsError("Folder {} already exists".format(tgt_dir))
subprocess.call(["cp", "-la", self.current, tgt_dir], shell=False) subprocess.call(["cp", "-ldr", "--preserve=xattr", self.current, tgt_dir], shell=False)
def make_backup(self): def make_backup(self):
if self.options.no_backup: if self.options.no_backup: