a utility used to sychronise files between locations (possibly over a network)

learn more… | top users | synonyms

11
votes
4answers
1k views

Can someone explain this rsync command for me?

Can anybody tell me what this does? rsync -uva --delete /srv/bkp01 /srv/offbk2/ > ~/offbkp01.log Does it delete bkp01 and offbk2 and sends a log to offbkp01.log?
3
votes
2answers
5k views

Start the Rsync daemon to synchronize a directory between two servers

I want to synchronize a directory on the server A to a server B. On the server A I created a file rsyncd.conf with the content: uid = rsync gid = rsync use chroot = no ...
0
votes
1answer
82 views

What is the -D switch in rsync?

What is the -D switch in rsync? Okay manpage says -D same as --devices --specials -g, --group preserve group --devices preserve device files ...
1
vote
1answer
122 views

Track file and folder name changes

I'm successfully running a remote backup of a small server over the internet using rsync. However, the process can be lengthy if the following happens. Let's say a large directory has had its name ...
2
votes
1answer
162 views

How to get a timestamp on rsync output

I have an hourly crontab job @hourly rsync -avc --delete /DirA/ /DirB/ > /home/job.txt However when I check the logbook I see no timestamps. How can I get timestamps in the log so that I can be ...
3
votes
1answer
2k views

How to upload a file to google drive?

I would like to just upload files to google drive from the command line. I don't care about synchronisation. I just want to upload things to google drive and if they exist they get replaced if not ...
0
votes
1answer
135 views

can't log into ubuntu after rsync restore of home folder

I have recently reinstalled ubuntu/lubuntu 14.04 onto my wife's Packard Bell Dot S netbook after an unsuccessful upgrade from 12.04. I followed this by restoring the home directory from a backup using ...
0
votes
0answers
15 views

Cannot scp/rsync into live cd [duplicate]

I'm trying to scp into a box running 12.04 32bit livecd. The machines are connected to same switch & can ping each other just fine. I use the usual args, eg- scp -rp ...
0
votes
1answer
264 views

HDD failure recovery: Déjà Dup vs rsync

I want my data to be prepared as much as possible for a hardware failure (especially HDD crash). I've already "lost" in the past 2 HDDs, so I know the frustration that comes with it. I am already ...
0
votes
1answer
210 views

Backup and Disaster recovery moving from Windows XP

I have recently migrated from Windows XP to Ubuntu 12.04 LTS and am trying to understand how to reproduce the functionality I used in Windows for backups, and if possible improve it. I used to run ...
0
votes
1answer
92 views

using rsync between 2 ubuntu servers having a folder with SPACE in the name, how to make it work?

I used rsync alot, but never found out how to copy a folder which had a space in the name. like this : sudo rsync -rv myuseraccount@192.168.xxx.xx:/data/svn/my folder /data/svn/ i tried already ...
2
votes
1answer
220 views

rsync creating target directory with old date

I have a script that automates backups - hourly snapshots of my xubuntu 12.04LTS workstation. It creates a directory named according to the date and time, ie: 20140316-1033, representing 10:33 this ...
0
votes
1answer
34 views

What happens if a file listed for backup with rsync is in use?

I have a cron job to rsync certain files from my home folder every hour. Would anything bad happen if a file scheduled to be backed up is being edited at the time of backup? Right now, I am avoiding ...
0
votes
1answer
83 views

Configure rsnapshot to keep initial(first) backup forever?

How could I tell rsnapshot to keep the initial (ie., the very first backup) backup of my server forever, incase I may need it in some rare time (like for some files in /etc directory ) ?
2
votes
1answer
81 views

rsync isn't creating files or folders

I'm still relatively new to Ubuntu and Linux. I've got a windows machine with a DAS. I've got about 5TB of data on it, and I want to use my server running 12.04 to back it up daily / weekly. I've ...
0
votes
1answer
689 views

rsync two existing directories copying everything

I have two file servers in two locations. Currently both have the same data, which generally is unmodified (used for read only access).When the second server was set up (the one I'm sshing to) the ...
1
vote
1answer
277 views

Remote backup with a file by file encryption?

I want to do remote backups over Internet (so limited bandwidth) from an Ubuntu server to a iMac machine (POSIX compliant) supporting both ssh and rsync. I do have sudo rights on both machines. The ...
2
votes
1answer
49 views

Check when folder was last synchronized with rsync

I'm using a cron job to backup a folder to another computer. I'm not sure whether or not it succeeded and /var/log/rsync.log is only showing errors, all of which occured before the scheduled backup. ...
0
votes
2answers
119 views

Moving from SVN to GIT , best way to copy full repos?

We are changing from SVN to GIT, and I wonder which is the best way to copy the files from one to another server. For that I would use rsync but I need to know if I can first copy the files and than ...
1
vote
1answer
76 views

rsync --link des from a file

I am attempting to create a simple backup script and I'm struggling to get rsync to do incremental backups I don't want it to overwrite files in the current backup but to link to the old one and if ...
0
votes
1answer
209 views

Help with rsync excludes not working

I'm trying to setup rsync to keep an image on the my external drive current. I've got 4 partitions to deal with: /, /boot, /home, /usr. I want to mount each one in turn and sync each with the ...
1
vote
1answer
92 views

Failover Solution

Lets say I have a server that runs a program that runs some application. I saw there is a solution called pacemaker or high availibility. Is there a way to make it so the second server has the same ...
0
votes
1answer
2k views

Unison vs Rsync + Mounted Remot Drive

So my situation is that I want to my development files - Ruby & PHP - available to all of my machines when I am home and away. When I asked the question before (Mount my Webserver as a drive in ...
2
votes
1answer
342 views

Why does rsync slow down my whole computer?

My powerful Linux desktop (12 core, 32GB RAM, SSD, fast processor, ubuntu 13.10) slows down to a crawl when I rsync from my internal drive to an attached USB3 NTFS drive. Typing any command, like "df" ...
0
votes
1answer
62 views

can't get rsync with exlude to work!

I have the source directory : /media/Documents/source and inside 'source' ,dir1,dir2 etc.. I am trying: rsync -avzhe ssh --exclude /dir1 --exclude /dir2 /media/Documents/source ...
0
votes
1answer
372 views

Clone an Ubuntu machine with software RAID

I need to migrate my dedicated server to a new one: Both server are hosted remotely, I've no access to physical machines, only root ssh The old server is running Ubuntu server 13.10, ...
2
votes
1answer
422 views

rsync has been interrupted - copy from beginning

I was using rsync to copy files from one pc tp another. And the 'remote' pc stopped working , so I had to restart. Now , how can I use rsync in order not to copy all the files again from the ...
0
votes
1answer
299 views

Rsync mirror specific Ubuntu distributions

How do I mirror specific Ubuntu distributions using Rsync? For example, using apt-mirror I would have the following lines so I would only have the package for 12.04 deb (mirror address)/ubuntu ...
1
vote
1answer
119 views

using rsync within the terminal

I am relatively new to Linux(Ubuntu 12.04) . I am researching on how to use rsync to backup a certain folder from my local (ubuntu) computer to my windows xp networked (shared) computer. What I want ...
0
votes
1answer
145 views

Restoring backup

I used rsync to back up my data from Vbox. I replaced the fstab of the backup with the fstab of a fresh install. I then used that data to restore everything on the same fresh install. Now I'm unable ...
1
vote
0answers
3k views

Unable to mount USB hard drive [closed]

My computer is currently running Elementary OS (I know it's not Ubuntu but I want to install Ubuntu but need to backup files first before doing so) and is unable to mount my Lacie P'9233 ...
0
votes
1answer
324 views

Using rsync to mirror folders on NAS

I have an old netbook that I use as a torrent server running utorrent on ubuntu and accessing with the webUI, at the moment I add links through the UI and then manually copy the files over to my NAS. ...
1
vote
1answer
510 views

Use rsync to change only the date modified of folders/files

I just transferred 1.8TB of data from an external hard drive to an internal hard drive using rsync, but I didn't add the "-t" flag, so the "Date Modified" for every file on the internal hard drive is ...
2
votes
1answer
129 views

Rsync-ing highly compressible files - am I missing something here?

Today I was using rsync over a slow internet connection to transfer a video file - uncompressed avi, 60 seconds duration, 360MB in size. Basically it contained 1500 frames of the same image, hence it ...
-1
votes
2answers
957 views

setup rsync to delete files from my remote server once they have been successfully transfered to my local machine

I need help setting up rsync to transfer files from my remote server to my local machine and then delete the files form the remote server once they have been moved successfully to the local machine. ...
14
votes
1answer
31k views

How to exclude a folder from rsync

I am trying to backup my home folder on my NAS drive. I am giving this: rsync -Paz --exclude-from 'rsync-exclude.txt' /home/chris/ admin@192.168.1.65:LinuxHome where rsync-exclude.txt has this ...
0
votes
1answer
82 views

rsync time for update with deletes

I've been messing with rsync to push my music library (managed by banshee) to my sdcard, which I use for my phone. This helps me get around the fact that I don't have a good GUI program to sync music ...
6
votes
1answer
6k views

How to rsync to android

How can I connect to my android device to rsync music (or other stuff)?
1
vote
0answers
369 views

sudo -Hu rsyncuser rsync --progress -avz /source/path/ host.org:/destination/path/ - why does it change directory permissions?

here is my setup: on my source machine i created user rsyncuser with reading and writing permissions in /source/path on my destination machine i created user rsyncuser with reading and writing ...
3
votes
1answer
4k views

How do I trigger rsync on file modification?

I can sync folders with rsync -avz /directory /target, now I wish to do it if I changed a file in /directory so rsync should be called automatically. I am using Virtual Box and the shared folder of ...
2
votes
1answer
4k views

How to use rsync via ssh with rsa key passphrases?

How can I use rsync with passphrases? All googled "solutions" i found use passphrase-less keys which seems no real option. i am runnning 2 ubuntu servers 12.04.2 LTS.
1
vote
2answers
574 views

Rsync creating \#015 directory

I have a virtual ubuntu server running on my windows server. This server has 2 external hdd's attached, which are mounted in ubuntu. Now I try to run rsync to sync a directory on my desktop and my ...
3
votes
1answer
186 views

How can I run a script when I unmount a particular usb drive?

I am trying to sync between a folder and usb drive, so that a) when I plug in a particular usb drive, a script runs to copy any newer files from the usb to the folder; and b) when I unmount the ...
1
vote
1answer
177 views

Priveleges problem using rsync

I am trying to move a web directory from serverA to serverB I have sudo priveleges on both, but I do not know root's password. Using the command rsync -a serverA:/var/www serverB:/var/ I get an ...
1
vote
1answer
956 views

Simple rsync incremental backup that timestamps deleted files

I use rsync as follows: rsync -a --backup --suffix="."$(date +"%Y%m%d%H%M") source backups to dump the whole of folder source into the folder backups, with the additional feature that if I ...
3
votes
1answer
1k views

How to restore filesystem-backup made by rsync?

Running version 12.04, with Virtualmin/Webmin. I tried to remove all unnecessary linux-image files today, since the /boot partition was full. I followed a guide from Ask Ubuntu, but that resulted in ...
1
vote
2answers
2k views

Can Rsync be used to copy files in a ntfs partition to another ntfs partition?

I bought a new hard disk and wanted to copy all files in a ntfs partition to another ntfs partition. These files are pdf files and bak files used both by win7 and ubuntu. Can Rsync be used to sync ...
0
votes
1answer
421 views

How to use 'rsync' to copy ubuntu system to another disk?

I use LiveCD and rsync -av to copy ubuntu system to another disk(same machine). What needs to be revised? UUID in boot.cfg. UUID in fstab. Anything else? Do I need to revise 'initramfs'? ...
6
votes
2answers
9k views

Monitor/Watch running rsync process

I have an rsync job that has been added to a crontab and when it's running, I can only check that there's a rsync PID and confirm with htop that it's eating up n amount of CPU and RAM. What I'd like ...
0
votes
1answer
280 views

how to take rcp to take daily backup of database from my ubuntu server to my local system?

I found this article http://www.howtogeek.com/135533/how-to-use-rsync-to-backup-your-data-on-linux/ but it looks outdated and I felt I may get a better answer at AsuUbuntu :) I have a server running ...