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

learn more… | top users | synonyms

4
votes
1answer
491 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 ...
0
votes
2answers
757 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
143 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 ...
3
votes
1answer
585 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 ...
0
votes
1answer
29 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
56 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
216 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 --ignore-...
3
votes
1answer
2k 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
3k 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
363 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
267 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
266 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 ...
1
vote
1answer
2k 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
266 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
202 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
98 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 ...
1
vote
1answer
3k 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
198 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
772 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
636 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 ...
13
votes
3answers
13k 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
27 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
332 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
6k 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
3k 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
411 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 -...
4
votes
1answer
6k 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 ...
1
vote
1answer
1k views

Rsync between Ubuntu and Mac: how to get the iconv option to work

I usually backup between two Ubuntu machines, but I now 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. The first time all is well, ...
1
vote
0answers
395 views

How can I use rsync over AFP and SMB protocols?

I have a Lacie CloudBox NAS drive. I can acces the folders with no problems via the file explorer, however I would like to use rsync to sync some files. I have used rsync before to sync folders on a ...
2
votes
1answer
376 views

Wildcards in exclude-filelist for duplicity

I am trying to exclude a "bulk" folder in each home directory from the backup. For this purpose, I have a line - /data/home/*/bulk in my exclude-filelist file. However, this doesn't seem to be ...
1
vote
1answer
77 views

Trying to sync live data to a backup server

I'd like to take the data from the live system to a backup system (to test new features etc) Piecing together an rsync command, I have the following. How do I ensure everything is copied? Things ...
0
votes
1answer
197 views

Fixing permissions of backup files that I don't have -r or -w access to - but still denied access

I've always used rsync to backup all my files to an external drive. Now after having formatted my hard disk and reinstalled Linux, I wanted to copy the backup files to my hard disk. The problem is ...
0
votes
1answer
73 views

Transfer files from maintenance shell

I am running ubuntu 14.04. I attempted to boot my computer and I received the following error: General error mounting filesystems. A maintenance shell will now be started. CONTROL-D will terminate ...
10
votes
3answers
13k views

Why is this rsync + ssh cron job giving me 'Permission denied (publickey)' errors?

I make frequent backups to a local drive which I want to sync daily to a remote server. The target server is configured for SSH key (no password) access only. Since my primary SSH key for that server ...
0
votes
2answers
76 views

Crontab command does not function properly

I have the following crontab entry to automate copying of my files to separate W/S in the network. However, it does not copy the files but produce the log file. here is the file contents #! /bin/...
6
votes
2answers
11k views

Is there any GUI application for command rsync?

I am currently synchronize between local folders in my computer by following command: rsync -av --delete "[source]" "[destination]" Now I want to do this via GUI. so, Is there any GUI available for ...
1
vote
1answer
1k views

Remote rsnapshot failing with “Permission denied” error

I'm trying to set up remote backups with rsnapshot from my home server. I want my server to connect into my laptop and take backups over SSH.Everything is set up correctly and I can connect from my ...
3
votes
3answers
334 views

How do I move thousands of files from a list?

So, I have a list of files in a text file. I believe it's about 100,000 files. The files in said list are spread across many directories, have different sizes, filenames, extensions, ages, etc. I am ...
1
vote
1answer
269 views

Copy data held by www-data over ssh

I have an apache server (machine #1) holding a database which I want to rsync distantly (the server is actually owncloud, for those who know). My data is maintained by the server and its rights are ...
2
votes
0answers
40 views

How can I run a simple rsync shell script at boot with root? [duplicate]

I have a shell script that contains a single rsync command to rsync two local directories. I want the script to run at startup/during boot and I can't seem to find the solution for this problem. ...
1
vote
1answer
185 views

Writing a script to rsync all directories

I have a huge set of backup files, each containing a directory of Videos. Each video directory is slightly different. I would like to merge these into a single directory to conserve, as I don't ...
1
vote
2answers
516 views

Automating rsync commands

I currently have too many rsync commands that I run on a day to day basis. Could someone be kind enough to let me know how I can automate these commands? I am new to Linux so a little bit of ...
0
votes
1answer
354 views

How can I configure a second SSH key + user for a single server?

I have a SSH key which is passphrase-protected. Authentication to the server is by SSH key only, password authentication is disabled. Both the server and my desktop run Ubuntu 14.04 and authentication ...
2
votes
1answer
61 views

How to automatically copy pictures with resizing to some directory?

I'd like to share some pictures with someone using Dropbox. However, I'd prefer to downgrade the resolution of them (they will only be viewed on screen on the other side, so there's no need for big ...
0
votes
1answer
307 views

Partial (specific releases) mirror of Ubuntu Archive via rsync only

I'm looking to build a Ubuntu repository archive for both i386/x64 architectures on 12.04 (precise). This is to bring in to a facility where I am working with no Internet connection. Circumstances ...
0
votes
1answer
81 views

Full Rackspace cloud server backup to local

I want to rsync my entire Rackspace cloud server disk to a local drive. The command I am currently using is: rsync --dry-run --archive --xattrs --compress --partial --progress --exclude={/proc/*,/sys/...
0
votes
1answer
546 views

rsnapshot bug with 14.04 - rsync not found error [closed]

Using rsnapshot with the +rsync_long_args=--rsync-path="sudo rsync" command fails with a rsync not found error. If I do a rsync only without using rsnapshot the command works find so it's not related ...
10
votes
3answers
15k views

rsync exclude hidden files doesnt work!

I’ve searched all over the internet and everybody suggests the same thing - that adding --exclude=´.*´ should exclude hidden files and folders from an rsync. It doesn’t. I´ve also tried adding a ...
2
votes
1answer
135 views

How to unsync two folders?

I have Ubuntu One and Dropbox folders synced. Now when Ubuntu One is shutting down, I want to delete U1 folder so it does not use space unnecessary. The problem is that if I delete U1 folder, Dropbox ...
21
votes
3answers
72k views

How do I make rsync delete files that have been deleted from the source folder?

I recently set up a machine with Ubuntu Server to host game servers. I installed a backup plugin for each game server that creates frequent backups of game world files in a particular folder on the ...