rsync

broken pipe with remote rsync between two servers

倖福魔咒の 提交于 2020-01-05 08:11:21
问题 I am trying to transfer a large dataset (768 Gigs) from one remote machine to another using bash on ubuntu 16.04. The problem I appear to be having is that I use rsync and the machine will transfer for a few hours and then quit when the connection inevitably gets interrupted. So suppose Im on machine A and the remote servers are machines B and C (all machines using ubuntu 16.04). I ssh to machine B and use this command: nohup rsync -P -r -e ssh /path/to/files/on/machine_B user@machine_C

broken pipe with remote rsync between two servers

随声附和 提交于 2020-01-05 08:10:13
问题 I am trying to transfer a large dataset (768 Gigs) from one remote machine to another using bash on ubuntu 16.04. The problem I appear to be having is that I use rsync and the machine will transfer for a few hours and then quit when the connection inevitably gets interrupted. So suppose Im on machine A and the remote servers are machines B and C (all machines using ubuntu 16.04). I ssh to machine B and use this command: nohup rsync -P -r -e ssh /path/to/files/on/machine_B user@machine_C

Issues quoting exclusions for rsync in bash script [duplicate]

笑着哭i 提交于 2020-01-05 04:55:14
问题 This question already has answers here : Variables as commands in bash scripts (5 answers) Closed 3 years ago . I'm using a bash script to sync a web folder using rsync. I'm using an array of folders and files to exclude, and I'm having problems escaping these items for the exclude list... my exclude list is defined like so... SYNC_EXCLUSIONS=( '/exclude_folder_1' '/exclude_folder_2' '.git*' '.svn' ) Then I build my exclusion string like so... exclusions=''; for e in "${SYNC_EXCLUSIONS[@]}"

rsync unexplained error (code 129)

假如想象 提交于 2020-01-04 07:17:30
问题 I am trying to rsync the data from one server to another, and approximately ~1.1T of data, but when am doing rsync I am getting following exception in the middle of transfer terminating the process. rsync error: unexplained error (code 129) at rsync.c(541) [sender=3.0.7] nohup rsync -r -t -v -o -g -p -c -l -z /source/images/ranker root@xx.xxxx.xxx.xx:/mnt/source/images & 来源: https://stackoverflow.com/questions/15209794/rsync-unexplained-error-code-129

How to sync a PHP project using RSync and NetBeans?

拈花ヽ惹草 提交于 2020-01-04 06:33:14
问题 I just installed the lastest version of Netbeans (7.2). I would like to sync my project with a remote server using rsync (or another ssh based tool). I tried to search for the plugin but I did not find it. Could someone help me? 回答1: Using Ant, you can add a build.ant file into your project. Right-clicking on the file should give you a "Run Target" option where you can run your ant tasks. Here's an example build.ant file with a deploy task <?xml version="1.0" encoding="UTF-8"?> <project name=

ConfigParser.MissingSectionHeaderError when parsing rsyncd config file with global options

让人想犯罪 __ 提交于 2020-01-03 13:01:40
问题 A configuration file generally needs section headers for each section. In rsyncd config files a global section need not explicitly have a section header. Example of an rsyncd.conf file: [rsyncd.conf] # GLOBAL OPTIONS path = /data/ftp pid file = /var/run/rsyncdpid.pid syslog facility = local3 uid = rsync gid = rsync read only = true use chroot = true # MODULE OPTIONS [mod1] ... How to parse such config files using python ConfigParser ? Doing the following gives an erorr: >>> import

compile the rsync source code and deploy it to Android Device

只愿长相守 提交于 2020-01-03 05:02:28
问题 i have read Build Rsync for Android ,and to do as @Ben Challenor methods. i do it : Compile with the cross compiler, using static linking: ./configure --host=arm-linux-gnueabi CFLAGS="-static" make but i donot know which code i need to put it to the android.the lib folder of the rsync_3.1.0 or the .so file of the lib rsync_3.1.0 ,or the all files of the rsync_3.1.0 回答1: only put the rsync file to the system/xbin all is ok 来源: https://stackoverflow.com/questions/22529567/compile-the-rsync

Using rsync on windows with vagrant running a CoreOS VM

天涯浪子 提交于 2020-01-02 04:36:25
问题 I am using windows 8.1 Pro pc running vagrant and cygwin's rsync. I am configuring as such: config.vm.synced_folder "../sharedFolder", "/vagrant_data", type: "rsync" And when I execute vagrant up I get the following error: C:\dev\vagrantBoxes\coreOS>vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'yungsang/coreos' is up to date... ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network

calling rsync from python subprocess.call

我的梦境 提交于 2020-01-02 00:54:11
问题 I'm trying to execute rsync over ssh from a subprocess in a python script to copy images from one server to another. I have a function defined as: def rsyncBookContent(bookIds, serverEnv): bookPaths = "" if len(bookIds) > 1: bookPaths = "{" + ",".join(("book_"+str(x)) for x in bookIds) + "}" else: bookPaths = "book_" + str(bookIds[0]) for host in serverEnv['content.hosts']: args = ["rsync", "-avz", "--include='*/'", "--include='*.jpg'", "--exclude='*'", "-e", "ssh", options.bookDestDir + "/"

Copy or rsync command

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-31 08:07:09
问题 The following command is working as expected... cp -ur /home/abc/* /mnt/windowsabc/ Does rsync has any advantage over it? Is there a better way to keep to backup folder in sync every 24 hours? 回答1: Rsync is better since it will only copy only the updated parts of the updated file, instead of the whole file. It also uses compression and encryption if you want. Check out this tutorial. 回答2: rsync is not necessarily more efficient, due to the more detailed inventory of files and blocks it