15
votes
2answers
561 views

Does Rsync Allow Files To Be Synced Both Ways?

I have backed up a linux web server using rsync with cygwin. I now have a perfect copy of the server on my windows laptop. If i delete or modify a file on my laptop and run rsync again with cygwin ...
2
votes
1answer
42 views

rsync from remote ssh server with forwarded keys

Context I am writing a synchronisation script to sync some web environments. Ex: Update integration from production (mostly to fetch new database rows and uploaded files) Some of my prerequisites ...
0
votes
0answers
621 views

rsync: getcwd(): No such file or directory (2)

I want to sync Server1 and Server2's logs to LogServer. For Server1: rsync -avz -e 'ssh -p 2188' user@server1:/usr/local/servers/logs/* /usr/local/logs/ This one works, but for Server2: rsync ...
0
votes
1answer
65 views

Temporarily disable SSH for all users except one and print a banner

I am planing to upgrade a server that have some SSH and rsync(over ssh) users. During this time that I am upgrading the server I don't want anyone else to login to the server. Is there a way for me ...
0
votes
1answer
80 views

Can a user be excluded from /etc/profile.d scripts?

I am having a problem using Rsync/SSH with a specific user for Amanda backups on a server. rsync -e 'ssh -i /var/lib/amanda/.ssh/id_rsa_amdump' -az otherserver:/dir/to/copy /copy/dir I have noticed ...
0
votes
1answer
76 views

rsync doesnt copy all files and folders

I have been scratching my head about this issue now for a few days and some serious googling hasn't uncovered the solution. Basically I am making a full copy of my server, in order to migrate hosts. ...
0
votes
3answers
100 views

Cant understand Rsync errors using ssh

I want to tryout Rsync for the first time but have run into difficulty. I want to transfer files from a remote server to my local server. I login to my local server and type: sudo rsync -avz ssh ...
4
votes
2answers
686 views

How to fix corrupt packet error for with rsync for (relatively) large files?

Trying to update files on a server, with the rsync command: rsync -ravq -e "ssh -o ConnectTimeout=2 -o ServerAliveInterval=2 -ServerAliveCountMax=2" --delete ./local_dir user@$SERVER:/dest_dir ...
3
votes
2answers
154 views

rsync over active ssh connection

Trying to script as clean as possible, I wonder if there is some solution for the following situation: One Linux server running sshd and one android device, with dropbear ssh client and rsync ...
-2
votes
1answer
80 views

Rsync and ssh script

I really dont need ssh keys. The server has good security implemented. I need the script to input the password without user usage/interaction. How can I make this? Its CentOS release 6.5 (Final) ...
1
vote
1answer
867 views

Rsync command issues, owner and group permissions doesn´t change

I´m trying to set owner and group via rsync and it doesn't seem to be working. This is the command: sudo rsync -rlptDvz --owner=cmsseren --group=cmsseren /home/serena/public_html/ -e ssh ...
2
votes
2answers
113 views

SSH multiple TCP connections for single transfer

I'm trying to backup a huge tar archive (150GB) from a root server (Debian Wheezy) to my local storage server (Cygwin). Speedtests with the root server give me about 100 - 120 MB/s download rate and ...
0
votes
2answers
198 views

why rsync is not working with crontab?

when I run the following manually it runs perfectly: /usr/bin/rsync -arvth -e "ssh -i /watch/scripts/word.pem" 1.1.1.1:/opt/ /opt when it runs using crontab. I get: Permission denied ...
-1
votes
1answer
162 views

Run totally silent rsync?

I have a cronjob that runs hourly, and is totally silent unless something goes wrong. Well ... almost ... A part of the job is rsync --del -Cacqrz public/. user@host.example.com:/target/path This ...
0
votes
3answers
108 views

How to use `rsync` to securely push to a mirror?

I am using rsync --rsh "ssh" to push to a mirror. Setting the necessary file system permissions on the mirror requires rsync to run with root privileges on the mirror. However, the mirrored files ...
0
votes
0answers
59 views

rsyncd post-xfer exec command as daemon

I would like to use rsyncd server to launch a daemon as post-xfer exec command after the synchronization: The problem is that even if the daemon is correctly launched, rsync is still hanging, and ...
2
votes
3answers
584 views

Rsync over SSH getting no tty present

I'm using the following command in root's crontab on Debian. rsync -vqrlHEAXogDtzhi --log-file=${LOG} --progress --rsync-path="sudo /usr/bin/rsync" --exclude-from=$CONFIG_DIR/excludes -e "ssh -i ...
1
vote
1answer
119 views

Rsync not working with one server while it does with others using strato hidrive

On a CentOS 6.4 running linux server, I am trying to rsync a folder with strato hidrive (http://www.strato-hosting.co.uk/online-storage-hidrive/advanced/). The server is running rsync version 3.0.9. ...
3
votes
1answer
283 views

rsync connection closing right around an hour

I am running some command in cron that does an rsync over two data centers. The connection rate between the data centers is around 1Mbps. I noticed that rsync keeps failing around 2.7GB to 2.9GB of ...
0
votes
2answers
99 views

Why doesn't rsync over ssh work when placed inside a FOR loop in a batch file?

I've placed the ff. code in rsync.bat: for %%A in (%VAR_REMOTE_HOST%) do ( set VAR_TARGET=%USER%@%%A:%VAR_TARGET_DIR% echo Rsync Source Dir: %VAR_SOURCE% setlocal ENABLEDELAYEDEXPANSION echo ...
0
votes
1answer
75 views

How can you do dynamic, key-based SSH similar to GitHub?

I wan't to provide SSH/RSYNC like features to users of my app. I'd like them to just be able to paste/save an SSH key into my app similar to how GitHub does: So, my question is, once I let users ...
0
votes
1answer
52 views

Moving linux server to another hoster

I have a task to move linux server from 1 dedicated server to another. In general my plan following: night time - turn off httpd and mysql. RSYNC via SSH. day time - turn on http and mysql. night ...
1
vote
2answers
2k views

rsync as root to /var/www failing with “protocol version mismatch”

I'm trying to set up a one command way to move website code from a dev machine up into my Ubuntu EC2 instance and have it be copied straight into the /var/www/mywebsite folder where nginx expects to ...
2
votes
1answer
74 views

Limited SSH access for log retrieval

I want to have limited access to a Linux server to be able to grab a certain set of logs. Ideally, I would like to be able to run rsync locally to grab the logs from the server and for security ...
2
votes
2answers
504 views

How to setup a public rsync and sftp server

I want to setup a public storage server which allows sftp and rsync (through ssh). I've got it working with a chroot jail and rssh. When the user connects to the server with sftp he can read all the ...
1
vote
1answer
398 views

How do I write an rsync exclude for a directory tree with names containing spaces?

I'm trying to exclude a directory tree as part of an rsync command embedded in a bash script approximately like this: $OPTIONS="-rl --exclude 'Some Parent Directory/Another Directory'" rsync ...
0
votes
1answer
576 views

rsync over ssh fails as cronjob works on shell - NAS4Free

This is my rsync.sh in the home directory of my backup user $ cat rsync.sh #!/bin/sh rsync -avvvz --stats --log-file="/var/log/rsync_client.log" -e "ssh -i /mnt/stor0/backup/backup-rsync-key" ...
3
votes
1answer
177 views

How to prevent rsync (using ssh as remote shell) from facing a password prompt

I would like to run rsync without the need to enter a password. I understand I can do this using ssh keys and once the right key has been copied over to the remote server rsync logs in fine without ...
5
votes
4answers
764 views

rsync/ssh/rsnapshot backup — remote script execution

I have the following settings in my configuration file: (/etc/rsnapshot.conf) Script/Tool: http://www.rsnapshot.org/ backup_script ssh root@host.domain.com "sh /home/user/backup_mysql.sh" ...
0
votes
3answers
450 views

rsync over ssh server to server backup

I have a server that holds all my backups and I would like to back them up to another server. I was just wondering the best way to do this. do I setup rsync or use scp? I would also like to keep ...
0
votes
2answers
1k views

Host key verification failed [rsync: connection unexpectedly closed]

I have been stuck with a peculiar problem, where rsync command is not running when it is executed through crontab. Below is the code : #!/bin/sh -x ...
1
vote
2answers
2k views

Rsync process is killed abruptly during backup over SSH

I have an rsync backup script to transfer data between two Ubuntu servers (located in different countries). The data being backed up is quite large in terms of number of files. It is about 17GB in ...
1
vote
1answer
434 views

How to make sshfs + VPN + git a tolerable working environment?

Currently the code base for the project I am working on is remotely on a company server. and it has to stay like that. also the remote git repository cannot be made public. My current setup is: ...
2
votes
3answers
1k views

How can I allow the user “postgres” on one server to rsync to another?

I'm trying to get this command to work as the user postgres (so I can ship wal files): rsync -a /tmp/test postgres@server2:/tmp/test But I get the error: Permission denied (publickey). I've run ...
4
votes
3answers
167 views

Backup Permissions for Entire File System

Here's the skinny: I have a Linode VPS that I want to backup to my local laptop via rsync. I have just generated ssh keys for the communication and left a blank passphrase for the private key so I can ...
0
votes
1answer
111 views

How can I refer to my machine (client) when remoted in to a server via ssh?

This comes up with surprising frequency: I am on a server or other machine via ssh. I want to scp or rsync some files back to my client machine. The problem is that I am behind a firewall and I don't ...
1
vote
1answer
31 views

rsync from machine a to machine c

I have gentoo Linux. I want to RSync to a remote machine that I need to SSH twice to get into. how can I do that in one command ? I used to do that with one command but I forgot how! I used to do ...
4
votes
1answer
639 views

rsync / rsnapshot

I am using rsnapshot and my config is as follows: config_version 1.2 snapshot_root /home/user/.snapshots/ cmd_cp /bin/cp cmd_rm /bin/rm cmd_rsync /usr/bin/rsync cmd_ssh /usr/bin/ssh ...
0
votes
3answers
278 views

rsync without password, none of google (server fault) tutorials worked

I need to use rsync for a daily backup operation and in the past (on different servers) I managed to just use a rsa key etc, but now none of google (serverfault) tutorials work at all. It keeps ...
1
vote
5answers
329 views

Setting up SSH Key securely for SCP/rsync to run without password

This is how I am currently doing it: # ssh-keygen -t dsa -b 1024 -f /root/localhost-rsnapshot-key Enter passphrase (empty for no passphrase): [press enter here] Enter same passphrase again: [press ...
0
votes
0answers
201 views

Automating rsync job with cron

I'm having troubles getting an rsync script to work on cron. I know this is a question that's been asked aplenty, but I've read all the answers I can find, and followed all of the instructions, but ...
1
vote
2answers
2k views

rsync to EC2 using ssh -i

I'm able to ssh -i mykey.pem to EC2. I'm able to scp -i mykey.pem to EC2. But when I try to rsync -avz -e "ssh -i mykey.pem" I get this error: Warning: Identity file mykey.pem not accessible: No such ...
0
votes
4answers
203 views

How can I send single file to multiple remote sites at the same time?

can scp be used to send single file to multiple remote servers at the same time? If so what's that? if not, what's the alternative?
1
vote
1answer
1k views

ssh remote command using password-less sudo fails

Logged on as bryan@localserver, I'm trying to perform a backup using rsync on a remote host bryan@remoteserver. I need the rsync connection to elevate privileges on the remote host using ...
3
votes
3answers
138 views

rsync over ssh is not working anymore, while ssh itself is working fine (Write failed: broken pipe)

This issue started happening after i changed router. This is the scenario: Windows7 Host Ubuntu 10.04 Guest (VirtualBox) Ubuntu 10.04 remote server What i used to do is run a very basic rsync ...
5
votes
5answers
7k views

Rsync over ssh: “ERROR: module is read only” suddenly appeared

I've used from some time rsync/ssh to backup my shared host contents to my personal Synology NAS (212j for that matter), and it worked quite well. For information, I use a password-less ssh ...
0
votes
1answer
264 views

resumable tar over ssh

I'd like to use tar cf - | ssh user@hostname tar xf - to copy a very large set of files. The only problem is that it will be over a very flakey VPN link. Is it possible to somehow set up a resumable ...
2
votes
2answers
688 views

Any script/tool for automated website deployments to production including minifying CSS/JS?

Currently I'm deploying my PHP website from staging to production using the following manual process: Minify CSS and JavaScript files using online YUI compressor tool. Move the original CSS and ...
0
votes
1answer
329 views

Rsync delta copy not working for virtual disk

I have tried rsync for copying VMs to remote host but the deltacopy does not seem to work. I am using Virtualbox on CentOS 6.2. My VM has 1 snapshot so I just copy the snapshot file instead of the ...
0
votes
1answer
73 views

rsync transfert no error but transfer is not happening

I want to transfer files between 2 different servers via a shell script (password less) I set up the SSH keys following this tutorial : ...