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]

Rsync is an open source command line tool for Unix and Windows systems that provides fast incremental file transfer to copy files and synchronize directories locally or between remote hosts. It is widely used for mirroring and backup.

0
votes
0answers
10 views

Local Backup on flexible Time (Laptop often in suspend) [closed]

So i've connected my local "Literature"-Folder with a cloud service that automatically syncs all my books, datasheets and manuals to the cloud. Whenever there's a new book added or deleted, it gets ...
0
votes
1answer
12 views

How to make rsync copy to symlinks?

I have to push data from a server to another. On the source, I have a folder (named vhosts) containing files, folders and symlinks. I want all this to be copied as files (not as symlinks) On the ...
0
votes
0answers
9 views

rsync behavior for -l/--links different for push vs. pull

I've encountered unexpected behavior using rsync to copy user-account files from an Ubuntu 16.04 machine to an Ubuntu 18.04 machine, depending on whether the files are "pushed" from old-to-new or "...
0
votes
1answer
17 views

What is the most efficient way to migrate a website over SFTP without full SSH Access?

I need to migrate a reasonably large website to a new server for a client with the least amount of downtime as possible. Unfortunately the client's current host only allows SFTP access without full ...
0
votes
1answer
14 views

How do I make rsync skip files that failed to transfer?

My destination has FAT32 file system, but the directory to sync has files larger than 4G, which result in File too large (27) error. How can I tell rsync to continue to the next file when it ...
0
votes
0answers
4 views

Rsync mkstemp failed: Resource Unavailable

I'm developing a laravel project on my Windows 8.1 64 machine with the latest Vagrant VituralBox Homestead box installed. I have the following in my yaml file authorize: ~/.ssh/id_rsa.pub keys: -...
1
vote
1answer
23 views

Can Unison be made to ignore bind mounts or hard links?

I'm looking for the best way to sync my home directory to and from a 120GB USB drive. The catch is that I use bind mounts (which I don't want to be followed) and hard links (which I do want to be ...
0
votes
0answers
28 views

How to clone dedicated Ubuntu server to another one?

I am trying to mirror my kimsufi's dedicated server, because got a better offer. Hardware is practically the same, except HDD is larger (from 500GB to 2TB), and amount of RAM is increased (from 2GB to ...
0
votes
0answers
27 views

Rsync on Windows issue

I want to get SQL database file from a remote machine using rsync. I've already installed DeltaCopy on my Win7 PC, but all I have is the one URL: rsync://export@10.123.101.225/folder/dmp_db.sql.gz ...
0
votes
0answers
11 views

Why, if NFS is sharing the destination, is it recommended to use rsync --omit-dir-times?

From the rsync manual: -O, --omit-dir-times This tells rsync to omit directories when it is preserving modification times (see --times). If NFS is sharing the directories on the receiving side,...
1
vote
1answer
33 views

Can I hard link files with rsync instead of copying them?

cp -l hard links files instead of copying them, saving filesystem space. I need to use rsync instead of cp because of its --exclude capabilities. So my question is, how do I get rsync to hard link ...
1
vote
1answer
36 views

Storing and displaying dates in a script (bash)

On my Linux (Ubuntu) I have a very simple backup script, essentially: rsync <params> dir_src_a dir_dest_b rsync <params> dir_src_aa dir_dest_bb rsync <params> dir_src_aaa ...
-1
votes
0answers
24 views

Rsync copy folders to different destinations based on content of a file

iam trying to backup some folders to a remote NAS. In every source folder there is a file with the started year of the project. i want to sync those folders to a corresponding folder year name. ...
3
votes
1answer
61 views

Ignore line endings when using Rsync

I want to sync two directories. The first one has CRLF and normal line endings, the second directory also has files with CRLF and normal line endings. The problem is, when I execute this code: ...
4
votes
1answer
77 views

Very slow on USB i/o

(Disclaimer: Linux noob switching from Windows 7 to Linux.) I have a dual-boot PC with 3rd gen core i5 CPU (4 real cores), 12GB RAM and a 240GB Samsung EVO850 SSD. This system is not the fastest under ...
0
votes
1answer
35 views

Sync folder between two computers using both local network and cloud

I'm looking for a way to do the following: Sync folder A on my laptop with folder B on my PC by transferring any changes on one machine onto the other machine using the local network. If I modify ...
1
vote
1answer
85 views

Btrfs copy snapshot with rsync

So I have been searching for this up and down, but must be doing something fundamentally wrong. What I want to do: I have configured my NAS to make snapshots of my home folder, file system is btrfs. ...
0
votes
1answer
109 views

Rsync stopped working and returns “rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.2]”

I am using rsync over ssh to perform backups from a client to a remote server. rsync -azLvv --progress -e 'ssh -p22 -vvv' --exclude 'foo' /home/user/ server.tld:Documents/backup/ It was working fine ...
0
votes
0answers
15 views

Reconstructing directory structure lost after rsync --remove-source-files

I expect the answer to this will be "sort the files manually and be extra careful next time", but here goes anyway in case I've overlooked something. Some time ago—months—I needed to free up space on ...
1
vote
1answer
54 views

Linux binary executable source

I am new to Linux. in the below commands, I can see rsync is listed in ls. but I am not able vi or cat to read it. bash-3.1# ls /usr/local/bin admenu canreqs cwtmp pidof procan rsync rsyncTransfers....
0
votes
0answers
53 views

How to exclude hidden files and include some hidden files in rsync?

I would like to backup my home folder in Linux using rsync. I am using the option --exclude=".*" to avoid backing up hidden files and folders. However, I would like to sync .bashrc and .bash_history ...
0
votes
2answers
47 views

rsync with cron job every minute issue

I am transferring files over the network using rsync in cron job that runs every 1 one minute, task is whenever new file come it has to start uploading on remote server: Since I am new so doing big ...
1
vote
0answers
50 views

Rsync and accents in filename on macOS

When I use rysnc to backup my media hard drive that's plugged into my Ubuntu server using the command rsync -av --delete source destination it deletes and recopies all files that have accents in them, ...
1
vote
0answers
65 views

rsync-3.1.1 not syncing with rsync-3.1.3

I recently upgraded to Rtools-3.5 (ancillary to this question) which includes rsync-3.1.3. On a different laptop using Rtools-3.4 (rsync-3.1.1), a simple command of rsync -aHAX remote:/path/to/dir/* . ...
0
votes
0answers
30 views

Why does rsync -x copy files under a bind mount?

I just learn that the -xx switch has different behavior than the simply -x However, I'm confused as to why a single -x still traverses bind mounts on the source side? The man page (below) seems to ...
0
votes
0answers
15 views

Rsync displays wrong speed (grossly overestimated)

I realize that there are many threads about rsync. In any case, I did not find anything about a gross overestimation of displayed copy speed. At this moment, speed optimization is a the priority, ...
0
votes
0answers
11 views

Are the commands in the detached GNU Screen slower?

Sometimes, I use GNU Screen program to execute some long copying task with rsync. However I notice it takes so much time. I would like to know if commands inside GNU screen are slower than "normal" ...
0
votes
0answers
28 views

rsync seems to ignore chmod

I'm trying to rsync files and folders to a remote location through ssh. On the remote location (/home/public_html/my_project/) I have the setgid set in order to have new files and new folders created ...
0
votes
0answers
19 views

Copy directory but not recurse

I want to copy a directory without recursing, preserving "everything", sort of like cp -a except that -a will do the unwanted recursing. The reason is I am making a script to copy/backup from an ...
0
votes
1answer
86 views

How to merge multiple folders together using rsync

I want to use rsync to merge these multiple folders together into one folder. Each folder contains unique file names so there are no conflicts in terms of filenames. My folders are the following ...
0
votes
0answers
70 views

rsync on Cygwin: rsync: [sender] write error: Connection reset by peer (104)

I'm trying to rsync some files to my phone from Windows, using Cygwin. I'm trying to make it work via ssh on USB tethering as described in the comments here. I have SSHelper on my phone. My command is ...
-1
votes
1answer
166 views

Windows Linux Subsystem - Accessing restricted Files outside of WSL

I want to run rsync from within WSL and backup my windows copy. (Because the windows tool does not work. If you use it, check your backups! Anyway, so...) I am mounting my backup drive with sudo mount ...
1
vote
1answer
508 views

rsync on Windows

I'm new to rsync and need some help with syntax or common understanding. I have 3 servers: Source (SRC) Destination (DST) Server where rsync and ssh are installed. I use rsync from Cygwin Note:...
0
votes
1answer
10 views

rsync fails to transfer specific files

I use rsync to backup my ~/Document to an external drive, as shown in the Image. Since adding a new folder containing html pages, it hangs during transfer. When I move the folder to the trash, it ...
0
votes
0answers
8 views

Can I tell rsync to create folders just-in-time so that I can get an idea of what files have been copied so far?

When I rsync a large directory, it seems that the first thing rsync does is recreate the entire folder structure, then start copying all the files. This makes it difficult to determine what folders ...
0
votes
0answers
19 views

Io fall very low when using network

Hello I use manjaro linux from some mounth. My computer work really well but when i am downloading something it start to be really slow even when i have an ssd and fiber. Yesteday I tried to download ...
2
votes
0answers
21 views

How to copy Epichrome (SSB Chrome) apps to other workstations with active Extensions?

Epichrome is an absolutely great tool when it comes to site-specific-browsing. I've found it's useful to be able to copy Epichrome apps to other systems, however it appears that Chrome itself must ...
0
votes
1answer
87 views

Rsync options I should use to clone external drive

I need to clone an external drive to another identically sized drive. Rsync seems like the best simplest option for this, and I'll just hook it up to a cron job to run periodically. But what options ...
0
votes
0answers
68 views

Rsync No such File or Directory

I am getting an error from rsync.exe saying a directory not found eventhough it does exist. I am calling this via C# Here is my rsync call and the error rsync.exe -rtvv --modify-window=2 --exclude=...
0
votes
1answer
74 views

rsync remote to local only files older than certain time

I want to rsync from a remote to local files that are older (or newer) than a certain time. I've seen answers that say find /src/path -mtime -1 | rsync ... but that only work if the dir is seen ...
0
votes
1answer
24 views

Rsync from “files-from” list but also delete extraneous files in destination

I'm using rsync to load my mp3 player with music from a text file, and as such I'd like to delete extraneous files that aren't included in the "files-from" list. (Say if I no longer want a particular ...
0
votes
1answer
175 views

Use rsync with nc as transport layer

By default, rsync uses ssh as a transport layer. Unfortunately with fast local network, ssh is very slow. Is it possible use rsync with netcat / nc ? I have make some experiments, but it does not ...
1
vote
0answers
23 views

File possibly 'corrupted' after copying using rsync command in Ubuntu

I used rsync to copy a 19.2GB .pst file (Outlook files extension) from an old hard drive to a new one using rsync -avzPSX Outlook\ Files.pst /media/new_drive. I read that the -z option compresses the ...
0
votes
1answer
859 views

How can I backup remotely the entire Linux server using rsync over SSH?

I own a CentOS 6.9 box I need to backup remotely my entire CentOS installation to my Rsync.net storage account through SSH. How would that be possible including incremental updates and excluding ...
0
votes
0answers
33 views

ssh can rsync in WITHOUT a passkey (not good)

I have an Arch Linux SSH backup server. I use this server to backup all my files with rsync. I am using root to do this. All of my Linux systems are required to input a passkey as well as the root ...
0
votes
0answers
160 views

Rsync detect move without --delete-after function possible?

Iam woking on a bash script witch rsysc's between two NAS devices Onsite and Offsite. The goal is to have a backup off the onsite NAS on the offsite NAS. We working on the onsite map with quite big ...
0
votes
0answers
13 views

copy files and directory structures using rsync while appending files with similar names

I have this setup: NODE123 # cd /var/src/ NODE123 # find . . ./dir1 ./dir1/dir2 ./dir1/innerf ./log ./messages and NODE123 # cd /var/dest NODE123 # find . . ./dir1 ./dir1/dir2 ./dir1/innerf ./log ....
1
vote
1answer
81 views

When is -av NOT the appropriate option for rsync?

I somehow never really get around to learning the use of rsync – whenever I need to do some copying/syncing, I think about it, then decide nah, I'll just use scp. Which is probably not a good idea ...
0
votes
0answers
27 views

Making rsync run a special command both locally and on on remote host before performing copy

My situation is as follows. I use rsync to copy some special files from a remote host to a local host. I call these files special because they are protected by a special group My useraccount is part ...
2
votes
1answer
63 views

How can I do an efficient incremental backup to cloud?

I have a folder that contain files of current and previous projects that I plan backup using versioned rsync. For more a more robust backup strategy I want to store a monthly snapshot offsite (eg ...