rsync

How do I back up a SVN repository with rsnapshot, when the timestamps differ every time?

I want to have rsnapshot backup a local on-disk SVN repository on a Linux machine. I know I can't just back it up off the file system, so before each snapshot I am making a copy with 'svnadmin hotcopy'. However, every time I do a hotcopy, the resulting files all have a current timestamp, rather than the same timestamp as the original f...

Native .NET version of Rsync for commercial application available?

Currently we are evaluating whether it is possible to provide rsync support to an application we sell. I did a Google search and found some references: "Native Window version of rsync" - A discussion about an implementation but without any code. "Has anyone wrapped the rsync algorithm in C#-callable package?" - A discussion that links...

Online Server Backup Storage

Hopefully someone here can help me. I've been using a normal hosting account for my backups up until now. today they have told me I'm violating their terms and conditions. I thought it wouldn't be allowed but it's worked for the last 6 months so I just forgot about it. I'm now looking for a real online backup storage service but can't ...

How to rsync files matched by .hgignore between two hg repositories.

Hi, How would you rsync files that are not tracked by mercurial between two repositories? My .hgignore looks like this: syntax: glob *.mat *.pdf *.asv *.bz *.tar *.zip *.7zip *.rar *.gz *.wmv *.png *.jpg *.jpeg *.bmp *.tif *.tiff *.gif *.avi *.mpg *.node *.ncb *.pdb *.ele *.hh *.html *.htm *.xsl *.log *.o *.ilk *.cvs* *.vproj *.pro...

Any rsync frontend that supports SSH for Linux ?

Hi, any rsync frontend that works with SSH for Linux ? I tried Unison, but i think it needs the server has installed also Unison. Regards Javi ...

python unicode implementation (using external programs: cygnative plink ssh rsync)

I have a backup applications in python that needs to work on Windows. It needs UTF compatibility (to be able to backup directories that contain UTF characters like italian accents). The problem is it uses external programs (plink, cygwin, ssh and rsync) and I can't get them working. The prototype is 32 lines long, please take a look: # ...

How does the rsync algorithm correctly identify repeating blocks?

I'm on a personal quest to learn how the rsync algorithm works. After some reading and thinking, I've come up with a situation where I think the algorithm fails. I'm trying to figure out how this is resolved in an actual implementation. Consider this example, where A is the receiver and B is the sender. A = abcde1234512345fghij B = abc...

Deploy with rsync(or svn, git, cvs) and ignore inconsistent state during deployment?

We are currently talking about deploying a website via rsync. However, during rsyncing the application is left in an inconsistent state, as some files may already be synced while others still are left with the old version right? How do people deal with this issue? I guess the same problem exists when deploying via svn/git/cvs. Should I j...

How can I sync a database driven website to a different server

I have a website using cPanel on a dedicated account, I would like to be able to automatically sync the website to a second hosting company or perhaps to a local (in house ) server. Basically this is a type of replication. The website is database driven (MySQL), so Ideally it would sync everything (content, database, emails etc.) , but...

Plone site files owner

Hello everybody, I accidentally changed owner of all files on my plone site to plone, and I don't know how to fix this without reinstalling site, which won't be acceptable. I have backup version which keeps default owners but it's changed in the meanwhile on the dafault site. Maybe rsync can sync only ownerships between these copies???...

minimal rsync installation on windows xp?

Hi I want to install rsync on windows xp. I have searched the web, but most of the solutions suggest using cygwin, but is there any other way to do this? I don't want to install cygwin because it takes lot of space. Moreover, I need to make it communicate with a rsync daemon on Linux, therefore alternatives to rsync on windows won't h...

How do I sync two local file structures.

Hi, I have two large source trees. One of them has some out of date image files. I would like to automatically update all the old image files (png, jpg, gif) in one source tree with the up to date image files in the other source tree. I am using Windows 7 but I have Cygwin installed. I have tried using rsync so far but with no success...

balancing rsync in directories

i need to rsync a remote directory to a local server, balancing file in 4 destination directory (related to 4 disk mounts). tips? ...

How to automate rsync without asking for password prompt

i would like to automate the rsync task as a cron job.. since it needs the passphrase i am not able to do the cronjob. i need to specify the passphrase along with the rsync command or i will store the passphrase in a file and i will read from it. my command will look like this.. rsync -aPe "ssh -i ' . $server->{'ssh_key'} . '" ' . $serv...

Dropbox like service with git -- no with rsync and inotify

Do you have any advice as how to setup a Dropbox like service using git? Do you think git is the right tool for this? I was thinking about using a git + rush solution what do you think about it? ...

Two Questions on for Rsync - rsync by date and by file name

Hi, I have two questions with respect to rsync: 1: I have a bunch of files which are incremented by day of the year. Ex: file.txt.81, file.txt.82, etc. Now, these files are in different directories: data1/file.txt.81 data1/file.txt.82 data2/file2.txt.81 data2/file2.txt.82 How can I have rsync get only the *.82 files and not even ...

How to compare two file structures in PHP?

I have a function which gives me the complete file structure upto n-level, function getDirectory($path = '.', $ignore = '') { $dirTree = array (); $dirTreeTemp = array (); $ignore[] = '.'; $ignore[] = '..'; $dh = @opendir($path); while (false !== ($file = readdir($dh))) { if (!in_array($file, $ignore))...

rsync doesn't sync files

Hi I'm using rsync(with Cygwin) to sync 2 local folder The folder contains binary files I'm using the following command rsync.exe -av dir1/ dir2/ but the files in dir2 where only partially update, there are few different files does anybody know of a problem with rsync on windows? should i use some other flags 10'xs ...

Bash scripting problem

I'm writing a bash script to sync my iTunes music directory to a directory on a removable hard drive. The script works fine when there is absolutely nothing in the folder on the external hard drive. Once all files have been copied to the external drive, then the script begins to act strange. Even though i just sync'd everything over, it ...

RSync copies only folder directory structure not files

I am using RSync to copy tar balls to an external hard drive on a Windows XP machine. My files are tar.gz files (perms 600) in a directory (perms 711). However, when I do a dry-run, only the folders are returned, the files are ignored. I use RSync a lot, so I presume there is no issue with my installation. I have tried changing permi...