Questions Tagged With rsynchttp://linuxexchange.org/tags/rsync/?type=rssquestions tagged <span class="tag">rsync</span>enWed, 09 Jun 2010 17:49:24 -0400rdiff - storing incremental data separatelyhttp://linuxexchange.org/questions/815/rdiff-storing-incremental-data-separately<p>I am trying to develop a new backup scheme for our Linux servers using something based on rsync (rdiff-backup, duplicity). Basically, I would like to do full backups weekly on Saturday and daily incremental backups. After the full backup completes, I would like to take that drive offline and store it off site. Is there any way I can do this while still being able to do daily incremental backups? Is rsync the correct tool for this or would something else work better?</p> <p>I tried to be as clear as possible, let me know if come more clarification would be helpful.</p>mrahabWed, 09 Jun 2010 17:49:24 -0400http://linuxexchange.org/questions/815/rdiff-storing-incremental-data-separatelylinuxrsyncbackupRsync backups using sudo instead of roothttp://linuxexchange.org/questions/411/rsync-backups-using-sudo-instead-of-root<p>I'm having a little rsync problem. I am trying to move data from one server to the next using rsync. The data needs to retain file owner and permission settings. The files in question are not owned by me, but my account (on both servers) does have sudo access.</p> <p>For example, I want to copy /var/www from server1 to server2. All files are owned by user www-data. My user account on both servers is <code>sander</code> and I have sudo rights on both servers.</p> <pre><code>server1$ sudo rsync -av /var/www/ sander@server2:/var/www </code></pre> <p>does not work, because sander@server2 cannot write to /var/www and cannot change the uid/gid to www-data.</p> <pre><code>server2$ sudo rsync -av sander@server1:/var/www/ /var/www </code></pre> <p>Does not work. sander@server1 cannot read /var/www.</p> <p>How do I solve this?</p>Sander MarechalSun, 09 May 2010 20:09:35 -0400http://linuxexchange.org/questions/411/rsync-backups-using-sudo-instead-of-rootbackupsudorsyncrsync with --delete optionhttp://linuxexchange.org/questions/244/rsync-with-delete-option<p>Anyone know why:</p> <pre><code>rsync -azuv --exclude "*.db" --delete /etc/postfix/ /home/backups/system/etc/postfix/ </code></pre> <p>Would delete files from the destination that don't exist on the source (as it is supposed to), but:</p> <pre><code>rsync -azuv --exclude "*.db" --delete /etc/postfix/* /home/backups/system/etc/postfix/ </code></pre> <p>Doesn't?</p> <p>There is nothing "funky" about the files (as far as I can tell) that don't get delete by the second command - in other words, they don't start with a "." or anything. For the record (not that it matters) the files that weren't removed from the destination after I deleted them from the source were:</p> <p>postgrey_whitelist_recipients.rpmnew postgrey_whitelist_clients.rpmnew postgrey_whitelist_clients.local.rpmnew</p> <p>TIA!</p>AcorpTue, 04 May 2010 04:17:40 -0400http://linuxexchange.org/questions/244/rsync-with-delete-optionrsyncglob