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

learn more… | top users | synonyms

1
vote
2answers
740 views

Rsync --delete option doesn't delete files in target directory

I'm trying to use the --delete option in rsync to delete files in the target directory which isn't present in the original directory Here is the command I'm using: rsync -avz --ignore-existing ...
2
votes
2answers
235 views

How can I view a progress bar when running rsync?

Good afternoon, I am using Ubuntu 12.04 as a repo and would like to view a progress bar when using rsync from the command line. I tried the option from ...
0
votes
1answer
167 views

Migrating linux systems to VMware using rsync

Hello there :) As stated in the title, I am trying to migrate linux systems that I have to a virtual environment. I tried Vmware's tools such as converter standalone but that proved troublesome since ...
0
votes
1answer
255 views

Keychain does not work in Cron

I have a problem with my backup script which is using keychain. The script works fine when fired via command line but doesn't work as expected when called via cron (does not transfer any data to the ...
0
votes
0answers
85 views

Rsync files to folder owned by another user in group

I have two users in my www-data group on my server: getent group www-data www-data:x:33:user2 I have a folder called logic where files have rights 664 -rw-rw-r-- and folders 775 drwxrwxr-x I try ...
0
votes
1answer
109 views

rsync script not working

I have a external USB drive that I use for backups. I wrote a bash script for rsync and it's worked flawlessly before. Tonight, I set the USB to mount in fstab and now when I try to run the rsync ...
0
votes
2answers
95 views

rsync delete files from target if not existing in source

Okay so I have looked up the existing answers here and elsewhere but what I can't find out is, if I use the --ignore-existing option along with the --delete option, will this combination I still be ...
0
votes
2answers
135 views

is it possible to rsync to another server using crontab?

Hi there is a bunch of videos and resources on how to rsync locally rsync /home/user1 /home/user2/backup, but i haven't found any tutorials on rsync crontab to another server pretty much, i use ...
0
votes
0answers
120 views

Samba File Server Configuration and Sync for Redundancy

I have two boxes which I installed Samba on. For now, I have a single user that access the server, however, I need to expand as to deploy in a production network. Below is what I want to achieve. ...
0
votes
1answer
48 views

Can't seem to get rsync right for backups

I'm trying to get rsync working as a simple backup tool (well, to be honest, more of a synchronization tool). I'm running Ubuntu 14.04 on a SSD on my home NAS, with two 3TB SATA drives for storage. I ...
0
votes
0answers
175 views

Cannot Rsync to ec2 instance

This seems like the problem with the ubuntu user permission on ec2 server , cannot rsync successfully. Steps Taken: Generated public key from origin server (a normal ubuntu droplet with root user ...
0
votes
0answers
21 views

How to Schedule Rsync over SSH (Ubuntu Server, Windows and OS X Clients) [duplicate]

On OS X I want to create a cron job that rsyncs certain folders to my Ubuntu server. I do something like this: MAILTO="my@email.com" */5 * * * * rsync -avz '/local folder/' ...
0
votes
1answer
219 views

Can't SSH between two servers

I recently purchased a new VPS to replace my old VPS and was in the process of using rsync to copy files over. Part way through rsync hung up and now it won't make a connection again it just times ...
4
votes
3answers
481 views

Rsync over SSH path with spaces does not work with quotes

I am able to successfully RSYNC over SSH as long as the paths do not have spaces in them. When the path does have spaces, it does not work. I have tried slashes, quotes, and double quotes. When I ...
0
votes
0answers
60 views

Desktop wallpaper config file

Is there a config file where Ubuntu saves it's desktop wallpaper config? My problem is I use luckybackup to sync my Ubuntu in my usb with the Ubuntu on my VirtualBox. That way, if I have to work, I ...
0
votes
0answers
41 views

grsync stops part way through copying

it seems to always stop at one point or another while syncing, and I don't know how to fix this. I'm using the default settings other than a few exclusions I needed to make to prevent a looping ...
0
votes
0answers
143 views

How can I restore my documents from a Time Machine backup?

I'm currently transitioning from OS X, and aside from finding replacement programs, what I miss the most about OS X is the use of the Time Machine feature. I currently have a drive that I used for ...
2
votes
1answer
223 views

rsync how to send folder contents but not folder itself

Currently I have the following command which will send a folder and it's contents recursively: rsync -avz --ignore-existing --recursive /var/-iles/_site root@mytestingdomain.com:/var/www What I ...
0
votes
1answer
297 views

Moving large size directory using rsync

I plan to move from linux o/s a directory which is mounted on SAN(offboard) to external storage for backup. The dir size is 14TB. I do have experience moving files in/out using rsync but never done ...
1
vote
1answer
45 views

Which files contain information about the physical partition?

I maintain a weekly updated backup of my whole hard disk with Kubuntu 14.04, thanks to Rsync. I rarely need to restore the back up, but today I did something nasty to my OS, too complex to try to fix ...
0
votes
0answers
819 views

Rsync error 23: some files were not transferred, when copying files from Windows drive to external HDD

I wanted to copy files from the Windows drive to external HDD using rsync, with the following command: rsync -azv --progress --exclude-from '/home/mint/exclude.txt' '/media/mint/OS/' ...
0
votes
0answers
57 views

Will these terminal commands allow me to backup my entire system?

I would like to backup my system in such a way that if I ever had to reinstall ubuntu I can very quickly return to my "old" setup. In other words, I would like to be able to recuperate all my files, ...
0
votes
0answers
318 views

rsync was working fine then started getting connection timed out errors

I've inherited some fairly old Linux installations and I'm very green in regards to Linux. The issue I'm having is server A (Ubuntu 8.04) backing up (basically copying) files to server B (Ubuntu ...
4
votes
1answer
376 views

Is it a good idea to restore a btrfs snapshot with rsync?

Is it safe to use rsync to restore a btrfs snapshot? Just to give a example rsync -ax /home/snapshot/my_user_folder /home/my_user_folder where /home is my home folder and /home/snapshot is my ...
1
vote
2answers
604 views

Auto backup on login (Ubuntu 14.04)

I have installed grsync so I can backup files from my laptop to my folder on a local server. When I run it manually, the files copy across, no problem. I want this to happen automatically when I log ...
0
votes
1answer
136 views

Simple backup with 2 servers in Ubuntu Server 14.10

I want to know how to make a simple backup from one server to another. I have 2 servers (one for websites, the other is empty) and I would make up the folder html (/var/www/html/ of apache) via SSH ...
2
votes
1answer
362 views

How can I use SSH aliases with rsync?

I can successfully use command ssh myVDShost without password to connect my VDS host. But when I use command sudo rsync -azP myVDShost:/home/ /mnt/myextdisk I get error: ssh: Could not resolve ...
1
vote
1answer
25 views

On what folders never to use rsync on?

Excluding all subvolumes of the / folder with rsync -x what other folders should one never rsync? For example /dev sounds to be a bad idea for rsync.
2
votes
1answer
53 views

How to properly rsync / folder?

I want rsync the / folder with a btrfs snapshot. How to avoid a potential crash? Should I exclude some folders such as /proc?
1
vote
0answers
141 views

Resume cp that was interrupted

I was doing a huge cp command, copying 1TB and I had disconnected computer from network after 700GB. Files are still there but I can't anyhow to resume copying. I tried sudo rsync rsync ...
1
vote
1answer
830 views

rsync throwing mkdir: cannot create directory ‘/data/dir_1/dir_2/dir_3/’: No such file or directory

I mounted a disk at /data. This is empty at the moment. I need rsync to perform mkdir -p than mkdir as the file I needs to be at at level 4 i.e. /data/dir_1/dir_2/dir_3/filename when dir_1, dir_2 ...
1
vote
1answer
1k views

rsync --include-from not working

The man pages do not have examples for this. I am having a hard time telling rsync to only include some file where those files. I don't understand why you have to exclude in order to include, why the ...
0
votes
1answer
257 views

How to access my NAS via the command line using rsync

I have always been accessing my NAS (dlink-343) via the gui in Caja or Nautilus. The connection says smb://dlink-15gtac. How can I access my NAS via the command line if I want to copy files to there, ...
0
votes
1answer
180 views

Using rsync to backup to two locations

Please forgive my ignorance, I have searched for an answer but have so far come up blank. Here's what I want to do: Use rsync to backup from the fileserver (Ubuntu Server 14.04) to a NAS device. ...
1
vote
1answer
204 views

How do I make grsync exactly mirror my hard drive over multiple backups?

I use grsync to backup my laptop's HDD to an external HDD on about a monthly schedule. The problem is that every time I move a folder to inside another folder on my laptop's HDD, grsync will not ...
0
votes
1answer
541 views

Rsync creates error message unexplained error (code 255) at io.c(837)

When I try to rsync -qaPH source/ 192.168.1.21:/var/backups I get rsync: [sender] write error: Broken pipe (32) rsync error: unexplained error (code 255) at io.c(837) [sender=3.1.0] Whats wrong ...
1
vote
2answers
158 views

Why is Rsync copying the same subset of (unchanged) files every time?

I am backuping files on my machine with rsync, but notice in my log files that a small subset of the files are re-synced each and every time. Why is this happening? (I can understand that those ...
4
votes
2answers
175 views

Should one call this an inverse differential backup and how does one achieve it?

I make a lot of backups. I do so on different disks, which are stored on different places. I am looking for a type of backup, but I can't find its name (which I need in order to figure out whether ...
0
votes
1answer
54 views

Preserve directory tree while copying with rsync

When I do something like: rsync Videos/YouTube/LetsPlays foo@bar:/home/foo/ The resulting directory structure looks like: /home/foo/LetsPlays I've read the man pages but couldn't an option to ...
0
votes
1answer
2k views

How to create local repository using apt-mirror and mirrorkit for selected architecture, release, spin

Having a local repository can be very useful. It is possible to use rsync to create a repository mirror, but this results in all the releases being downloaded, even older ones and would include files ...
0
votes
2answers
154 views

Lossless Compression using rsync

When using the -z mode to compress data when running rsync, is the compression lossless? sudo rsync -az /path_to/A /path_to/B How can one ensure that any compression would be lossless?
0
votes
1answer
521 views

rsync exclude a single file from the root folder

I want to rsync from a folder, which contanins index.php (which need to be excluded), and many other directories contains index.php too. i created an exclude file and added index.php there. but all ...
1
vote
1answer
420 views

How to put running time constraints on rsync processes?

I want to set a time limit on my rsync backup processes. How do I best go about? According to this post, there is an option to do exactly that: --time-limit When this option is used rsync will stop ...
11
votes
3answers
8k views

Backup your home directory with rsync and skip useless folders

You can easyly backup your home folder on an external harddrive with $USER=`whoami` rsync -a --exclude=.cache --progress /home/$USER /media/linuxbackup/home/$USER I excluded the .cache folder cause ...
1
vote
1answer
25 views

Minimizing effects of large number of files

I need to manage a filesystem with a large number of files (hundreds of thousands). This filesystem is rsynced periodically. The vast majority of files don't change often, but since there's so many, ...
0
votes
2answers
271 views

rsync + ssh public key asking authentication

After creating the keys and use ssh-copy-id command successfully, I can connect by ssh user@host but when I'm trying to do a transfer via rsync and it asks for password... rsync command is as follows: ...
1
vote
2answers
4k views

rsync error while transfering data from one server to another

I have 2 ubuntu 14.04 servers in vm in my machine.I logged in the 2 servers as the user chandhu, then by using sudo -i , I changed as root. I have one file in the user chandhu.I wanna to move that ...
2
votes
1answer
2k views

Update rsync to 3.1.1

I've noticed that the latest version of rsync is actually 3.1.1, but only 3.1.0 seems to be included in 14.04.1. How can I update to the latest version?
1
vote
2answers
300 views

Select Top N files based on modification date and rsync them

I'm fairly new to linux and I'm trying to transfer some N files based on Modification Date. I've found this commandls -tr | head -100, which to my understanding, will list the Top 100 Files (head ...
3
votes
1answer
4k views

Rsync with special character files not working between Mac and Linux

I want to use rsync to backup my Ubuntu server with a disk residing on a Mac. But I do not get it to work properly, since every time I re-run the rsync operation after the initial time, the files with ...