From eff14863fb6a6da0ccf8a40343160b09f29ea493 Mon Sep 17 00:00:00 2001 From: Alex Markelov Date: Sat, 31 Oct 2015 08:30:08 +0000 Subject: Add support for sparse files to tarssh method Without '--sparse' option tar will not properly archive sparse file and geo-replication will result in non-sparse file on the remote end. Here is more on how I arrived at this http://markelov.org/wiki/index.php/GlusterFS_3.6.1_on_CentOS_6.5:_geo-replication_and_sparse_files_problem Change-Id: I8d671964a1b48bbb916e4a064571221bf3631494 BUG: 1276839 Signed-off-by: Alex Markelov Reviewed-on: http://review.gluster.org/12476 Tested-by: Gluster Build System Tested-by: NetBSD Build System Reviewed-by: Aravinda VK --- geo-replication/syncdaemon/resource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'geo-replication') diff --git a/geo-replication/syncdaemon/resource.py b/geo-replication/syncdaemon/resource.py index 0573acce3e7..740861a23f3 100644 --- a/geo-replication/syncdaemon/resource.py +++ b/geo-replication/syncdaemon/resource.py @@ -958,7 +958,7 @@ class SlaveRemote(object): logging.debug("files: " + ", ".join(files)) (host, rdir) = slaveurl.split(':') tar_cmd = ["tar"] + \ - ["-cf", "-", "--files-from", "-"] + ["--sparse", "-cf", "-", "--files-from", "-"] ssh_cmd = gconf.ssh_command_tar.split() + \ ["-p", str(gconf.ssh_port)] + \ [host, "tar"] + \ -- cgit