]> git.proxmox.com Git - proxmox-backup.git/commitdiff
tests/pxar.rs: Change rsync options to --archive
authorChristian Ebner <c.ebner@proxmox.com>
Tue, 16 Jul 2019 11:19:51 +0000 (13:19 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 17 Jul 2019 07:46:42 +0000 (09:46 +0200)
By this the pxar integrity test checks for even more attributes such as a e.g.
correctly restored timestamp. See `man rsync` for details.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
tests/pxar.rs

index e2f0a211aa15f1c79afbf1bb17b107949687a67d..cf162a53c53725ac2e453dc2b9313bab220178bb 100644 (file)
@@ -39,12 +39,7 @@ fn pxar_create_and_extract() {
     let stdout = Command::new("rsync")
         .arg("--dry-run")
         .arg("--itemize-changes")
-        .arg("--recursive")
-        .arg("--acls")
-        .arg("--xattrs")
-        .arg("--owner")
-        .arg("--group")
-        .arg("--hard-links")
+        .arg("--archive")
         .arg(src_dir)
         .arg(dest_dir)
         .stdout(Stdio::piped())