Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rsync]

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

0
votes
0answers
26 views

setting up rsync cron job, not executing

So I have just setup my new Ubuntu Server 18.04. I have the main primary OS installed on an SSD, the second HDD (primary media drive) mounted to /media and the backup drive mounted to /mnt. I have set ...
0
votes
1answer
15 views

BACK UP using rsync Ubuntu server 16.04 Overall

well, i'm very new to Ubuntu/Linux fields and environment though i knew a little bit knowledge to it. Anyway, my concern is that will it possible that I can Back Up all the data on our Ubuntu server ...
0
votes
1answer
22 views

-k and -l options in rysnc

When read the manual of rsync, I found that -l, --links copy symlinks as symlinks -L, --copy-links transform symlink into referent file/dir --copy-unsafe-...
0
votes
0answers
12 views

rsync error on sync from local to remote, however can rsync from remote to local

I'm having trouble using rsync and ssh to sync from local to remote. However, I can rsync from remote to local as follows: rsync -avzP -e "ssh -i key.pem" ubuntu@example.co:/var/www/html/index.php /...
0
votes
0answers
31 views

Error while copying to flash derive

I tried to copy contents to usb(host system with ubuntu 16.04), this return is no error and but no "done" dialog box appears and havn't allocate any space in USB. it seems something like infinite ...
0
votes
0answers
9 views

How to copy a file with systemd mount unit escape in name on cifs mount?

I'm writing a backup with rsync and a file with the systemd mount unit escape \x2d for - on a cifs (protocol version 3) (/mnt/diskstation/backup in this example) causes the following trouble: > ...
0
votes
1answer
25 views

rsync commands automation [duplicate]

I want to automate multiple rsync commands like below: Execute rsync1 Display output of rsync1 in the terminal Ask confirmation if want to continue rsync2 Execute rsync2 Can someone help?
1
vote
1answer
87 views

Restoring full backup to Ubuntu Server with rsync

First a little background: Last weekend I set up RAID 5 with new disks I got for my homelab server. Because I set up raid for the first time it would delete all of my data. With this in mind before ...
2
votes
1answer
30 views

Exclude Directory during rsync [closed]

Hello I am trying to sync data between my to server using below command rsync -avzP --exclude /home/username/public_html/raj/sandip "-e ssh -p 18765" username@c45562.server.net:/home/username/...
0
votes
0answers
16 views

Can not run screen for user zimbra on ubuntu 16.04

I tried running screen using user zimbra but it produced error like this: zimbra@mail:~$ screen rsync myfile.tar.gz zimbra@10.10.15.123:/home/zimbra Cannot open your terminal '/dev/pts/0' - please ...
1
vote
1answer
49 views

How can I limit page cache/buffer size

My problem is this: My laptop has a relatively slow disk subsystem (amd I'm not going to buy a better one) and I backup my system using rsync which works well for me. However, during the backup ...
0
votes
1answer
56 views

how to migrate the hidden files using rsync

I am using the command below, in my target sever: rsync -ab myuser@sourcehost:/source_dir/* target_dir But this is not able to sync the hidden files present source_dir anything I need to use any --...
0
votes
0answers
25 views

How to do multiple time interval settings for different files in Deja Dup

I use DejaDup to Backup my files. I would like to Back up a set of files (especially programming codes) more often say every 5 minutes and delete backup older than 1 hour. I want to backup my ...
0
votes
1answer
71 views

rsync - unexpected remote arg

I am trying to rsync a folder from remote to local but get an error below. I googled but can't find a solution that works. kong@kong-P15SM:/media/kong/Elements$ rsync -r -i /home/kong/.ssh/id_rsantu -...
0
votes
1answer
49 views

rsync not working

How do I exclude a folder when using rsync ? rsync -i /home/kong/.ssh/id_rsantu --exclude /media/kong/Elements/sgan/dataset/ /media/kong/Elements/sgan/ kongserver@35.123.456.78:~/ And this is the ...
0
votes
0answers
19 views

How can multiple computers be kept in sync using rsync *deleteriously* and *safely*?

Imagine perhaps 5 computers all trying to keep in sync a ~60 GB directory. One could be considered a central server if that matters. I am aware of (and am using to various extents) Nextcloud, ...
-1
votes
1answer
61 views

How to solve the error of the rsync error: error in IPC code (code 14) at pipe.c(85) [sender=3.1.2]

I'm using a command of rsync for making a new directory to save the images the command is rsync -ave --rsync-path="mkdir -p /var/www/html/uploads/ironnetwork/ && rsync" /var/www/html/uploads/...
3
votes
1answer
82 views

Merge multiple directories containing files with same name

I have been digging through questions but can't seem to find the exact answer I need. I have a directory with multiple subdirectories: sent sent.~16~ sent.~22~ sent.~29~ sent.~35~ sent.~41~...
0
votes
1answer
53 views

Change owner over ssh with sudo user

I need to copy a file from local to remote server. I am using rsync for this with passwordless connection. I am not able to change permissions for the file after migration. I am using this command. ...
0
votes
0answers
55 views

Transfer all user accounts with data from old server to new server

I try to set up a new Ubuntu server. Therefore I have to transfer the user accounts from the old server to the new server. I tried to rsync the old home folder to the new home folder. The problem is,...
2
votes
1answer
234 views

What are the main differences between a system snapshots (Timeshift) and partition images (saved as iso)?

Following comments under this answer of mine I became interested in the question whether the best option for me in order to back-up a system is a partition back-up as described at the linked answer or ...
1
vote
1answer
36 views

save time in backup path of rsnapshot

I want to use rsnapshot for backuping my local system to an external disk. Since now I used a plane rsync command for creating hardlinked backup folders with names like 2018-10-15_12:23. I configured ...
0
votes
1answer
28 views

What format can I use for the destination drive when backing up with rsync?

What format can I use to back up a destination drive using rsync with Linux - ext4, ntfs , fat32?
0
votes
2answers
60 views

Rsync and ownership/permissions

Now I have a question... I am creating a backup of my entire owncloud data directory but when I check the result, the ownership and permissions are not the same. What am I doing wrong? sudo rsync -...
0
votes
0answers
51 views

Why are the by-hash directories on ubuntu mirrors not hard linked?

I noticed that the files in the by-hash directories are not hardlinked to the actual files, as I would have expected. This means that any mirror downloads consume double the time and bandwidth for the ...
3
votes
1answer
141 views

linux-image-4.15.0-36* reduces the speed of rsync over ssh to 10 times less [closed]

With kernel version 4.15.0.36, the speed of rsync over ssh gets reduced to around 10 times less than with 4.15.0.34. Is this a regression? On 4.15.34, everything works as expected. If I go back to 4....
0
votes
0answers
28 views

Does rsync --delete play nice with Ubutnu's implementation of ecryptfs? If not, is there a work-around?

I recently ran sudo rsync -aAXv --delete --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / '/media/[my name]/Seagate Backup Plus Drive/RS backup method' ...
1
vote
0answers
49 views

Create Tar On Ubuntu And Mac With Same MD5

I have a folder of files which I am trying to tar into an archive. I have the same files on a Mac and on a Ubuntu machine. If I run an rsync it shows that the directories are the same, but if I tar ...
1
vote
2answers
171 views

USB file transferring confusion

I am using ubuntu 18.04 with KDE Plasma after i upgraded from 16.04. I did some research and so far i understand that before the actual file transfer, files are cached in the ram so they can be ...
0
votes
0answers
96 views

Rsync delete unwanted dir

There are backups with many source dirs: /some/path/dir1 /some/path/dir2 /some/path/dir3 (...) I want do exclude and delete dir2 from destination rsync -av --delete --exclude=dir2 --delete-...
2
votes
1answer
18 views

Can Unison transfer the executable flag?

I create a Unison setup between my work computer and my desktop at home. This way, I can continue my work at home (and vice versa), even when I forgot to commit something to GIT at work (and vice ...
4
votes
1answer
39 views

what does the period (.) do when using rsync

Are the two commands below interchangeable? Does it matter whether I use the . or not? sudo rsync -aXS /home/ /media/home/ sudo rsync -aXS /home/. /media/home/. I know that the period . means the ...
0
votes
1answer
20 views

How to create cloud service synchronizer + automation tools

Is there a framework for automating tasks on a development environment (which involves interacting with cloud services). For example, lets say I use rsync and to automate backups and various things ...
1
vote
2answers
72 views

Automate backups creation from multiple locations, structure them by date, mantain local and cloud incremental backups [closed]

I have my app on a VPS(Ubuntu Server 18.04), and the host can do weekly backups of all the system. But this is not enough, so I want to do my own backups(besides I had hosts backup files failing in ...
0
votes
1answer
40 views

Strange rsync behaviour I don't understand throught SMB/CIFS

When I mount a share CIFS share on my machine I can see the content in /run/user/<user ID>/gvfs. That may be because I use a Mate flavour of ubuntu. In that case I cannot do: rsync -av path/* ...
5
votes
1answer
238 views

What is the default location for rsync uploads? [duplicate]

I uploaded a local text file omitting the remote location and can't find the file (Ubuntu 16.04). rsync -chavzP dump.sql user@ip-address It's not in my home directory or anywhere else that I can ...
0
votes
1answer
67 views

link_stat error: rsync can't find /home/user/ssh?

I have a bit of a strange error message on rsync. I try to start rsync to run in the background" rsync -az ssh /home/user/folder user@server.example.com:/home/user/folder.backup & Then rsync ...
2
votes
4answers
508 views

Using rsync for incremental backup

I'm hosting a page and have ssh-access to the webspace. The site allows modification by it's users. To be able to revert it back to an older state, I thought about rsync to create an incremental ...
3
votes
0answers
77 views

How can I clone my installation to a btrfs partition and make it bootable?

I'm trying to copy all files, configuration, everything, to a new btrfs partition without reinstalling. So far, what I've tried is to go to a live cd session (which is actually booted from an iso ...
0
votes
0answers
62 views

Rsync Nexcloud data folder - ownership

My Nextcloud data folder is on a Ubuntu Server 16.04 NUC and I have a Raspberry Pi that I use only to backup my entire Nextcloud data folder. To do this, from the Nexctloud server, I run sudo rsync -...
1
vote
2answers
252 views

rsync --info=progress2 percent complete of copying a large directory is non-uniform?

rsync --info=progress2 percent complete of copying a large directory is non-uniform in that the last 10% seems to take longer than the first 90%. Why is this and is there a way to make it a more ...
1
vote
0answers
51 views

cifs - file managers upload slower than rsync

I'm mounting folders from my NAS on my computer (Ubuntu 18.04) with cifs. Copying an 8 GB file... Upload (local -> mounted) Nautilus/Nemo -> 6 MB/s rsync -> 50-60 MB/s Download performance is also ...
0
votes
1answer
69 views

Home folder synced to HD: results differ!

I'm new to Ubuntu. I would like to have an exact copy of my home folder on my Hard drive. I've tried the following (no programs running on Ubuntu): 1. Copy-paste ~/ to /dest1/ per drag and drop in ...
0
votes
0answers
44 views

getfacl returns rwx, but I have a “permission denied” when trying to access the said folder

I'm trying to execute a script from Server A with user "vbackup" to copy some files from server B to server A. On server A, I did setfacl -Rdm user:vbackup:rwx /var/atlassian/ On server B, I run ...
0
votes
0answers
55 views

VPS snapshot/backup with rsync

I would like to create a full backup/snapshot of my VPS which runs my websites, and some more services. This so that if my server crashes or something like that I can put back my snapshot/backup and ...
1
vote
0answers
16 views

Backup script that can reboot to another os, run backup and boot back

My computer has two disks: sda with Primary Ubuntu and sdb with Helper Ubuntu with Clonezilla installed. On Windows it is easy to create an incremental backup thanks to shadow copy. On Ubuntu I have ...
1
vote
0answers
197 views

Stop lsyncd changing my target directory ownership

I'm using lsyncd to copy some files from /dir1 to /home/myuser. I'm using the rsync options to chown the files when they are transferred, but what seems to be happening is as well as changing the ...
0
votes
0answers
92 views

Verify all files and folders in destination exactly match source with rsync

Which rsync flags are the most appropriate for making sure that the destination folder is an exact recent copy of the source folder? I want to make sure that: All files and folders have been ...
1
vote
1answer
304 views

Transferring terabytes of data between two machines efficiently (samba and NFS mounts)

I need to transfer 15 TB of data from one machine to another machine and having failed several times during the past three weeks, I am out of options and do not know what to do. There are two ...
4
votes
1answer
511 views

rsync giving “file name too long” errors

I'm trying to use rsync to make an archival copy of a file system. Most of the files are being copied OK. However, some files are failing to be copied with errors such as the following: rsync: ...