Networking :: Rsync - Sync Files Modified Within The Last 60 Days?

Jun 3, 2009

Can anybody tell me how I can synchronise files between two computers in a network that have been modified or created within the last 60 days?

View 3 Replies


ADVERTISEMENT

Software :: Rsync-like Program To Sync Files Between Computers?

Apr 4, 2010

I'm looking for a way to sync directories between two computers, in a "two-way" fashion. Basically, I have a laptop and I have a desktop, and I want to keep a particular directory synced between the two machines. The easiest thing would be to have some kind of networked filesystem, but obviously this won't work because the laptop may or may not be connected to the internet at any moment. At any time I might be editing files on the desktop or on the laptop, and when the laptop is connected to the internet, I'd like all files on both machines to be synced to their most recent versions.

I thought I could do this with rsync but now that I've looked into a bit more it seems like it works only for "one-way" syncing. In other words files are synced from a server to a client or vice versa, but not both at once. First of all, am I right about that? And second, is there a program that will do what I want to do? OK, I guess you could do it with some SVN kind of thing but that seems like overkill. I guess if there's nothing out there it shouldn't be too hard to write a script myself to do it.

View 3 Replies View Related

General :: Run Rsync On Server A To Copy All Files From Server B When They Are Newer Than 7 Days

Jun 14, 2011

I want to run rsync on server A to copy all files from Server B when they are newer than 7 days.(find . -mtime -7) I don't want to delete the files on Server B.

View 2 Replies View Related

Ubuntu :: Using Rsync To Sync Within The LAN?

Jan 18, 2010

I want to use rsync to synchronize some folders on my LAN. I have this working with two scripts; one runs at the beginning of my work session and gets the latest directory tree from the server, and the other runs at the end of the session to put any local changes back on the server. My "get" script looks something like this:

Code:
rsync -avuzb --backup-dir=/home/user/rsync_backup_dir --delete my_server:/home/bak/common_data/ /home/user/data

This works well, and with the "b" option any file that has been deleted from the master directory tree on the server will be deleted from the local machine and moved to the local backup directory. This is a safety measure to prevent the loss of files through a mistake (on my part).

The problem is the "put" script:

Code:
rsync -avuzb --backup-dir=/home/user/rsync_backup_dir --delete /home/user/data/ my_server:/home/bak/common_data

I want to run both scripts from the local machine, but the "put" script will not save deleted files to a backup directory. I tried using a remote backup directory like "my_server:/home/user/rsync_backup_dir" but this did not work. Is there a way to backup files deleted from a remote server from an rsync script run locally?

View 5 Replies View Related

General :: Sync Two Directories Using Rsync?

Dec 24, 2010

I try to sync two directories using rsync.

the source is on Linux, and the other is on windows.

So, I mount the directory on windows using the command mount -t cifs . in Linux system.

Then I execute rsync ....

Everything is OK, but rsync prints out

rsync: chown "/mnt/windows/A/." failed: Permission denied (13)
rsync: chown "/mnt/windows/A/readme.txt" failed: Permission denied (13)

I want to sync the directories without changing ownership.

View 2 Replies View Related

Ubuntu :: Using Rsync To Sync Folders?

Nov 28, 2010

OK, here is the test code I am using: rsync -acrv /home/randy/Documents /media/USB2/testbackup. What should I put in the code so that when I delete something in the Documents folder, it will also be deleted in the testbackup folder when I perform a sync.

How can I have it so the code will check if USB2 is available, if it is, do the sync, if not, do nothing.

View 1 Replies View Related

Ubuntu One :: Sync Chewing Up CPU Cycles - Using From 50-80% Long After Any Sync-able Files

Sep 10, 2010

I've got Ubuntu One syncing a single 25MB folder on 4 computers. On one of these computers, the ubuntuone-syncdaemon process constantly pegs the CPU, using from 50-80% long after any sync-able files have been modified and successfully synced. The process is only using 8.9MB of RAM.

Specs:
Ubuntu 10.04 (lucid)
Kernel 2.6.32-24-generic
1000.8 MB RAM
Pentium 4 2.53GHz
Free disk space: 280.9 GB
System monitor shows 56.8% total RAM usage, 15.4% swap file usage.

View 3 Replies View Related

Software :: Run Rsync To Download Files From A Server Without Rsync Daemon?

Sep 18, 2009

I just tried to sync files from one server to another. After the sync process, I found the files are bigger than original ones.

I looked up the web and found someone mentions the rsync daemon. So I have to run the daemon on one server before I run the rsync?

The command I used is rsync --partial --progress -r source destination

View 1 Replies View Related

General :: Sync Local And Remote Directories Using Rsync?

Jul 14, 2010

I have two linux box that i would like to keep in sync. I see option -avz syncs the remote with local but new local files are not pushed.

View 2 Replies View Related

Ubuntu :: Sync Script - Delete Option In Rsync?

Jul 18, 2010

wrote a script to sync my netbook music with my server music and everything was fine.but if for some reason lets say i run it accidently and i'm not connected to my network, i just wiped my netbook music .here's what i got so far:

Code:
Sudo mkdir /media/ServerMusic/
mount -t cifs -o user=Justin,password=****** //192.168.1.108/Public-3/Music/ /media/ServerMusic/[code]....

i need to have the --delete option in rsync (say i sync it and realize i hate some music, when i delete it from the server i don't want it still on the netbook.i want an if statement in here somehow, but i'm not sure how to do it.something like, the first command in the script should be a ping test, if ping doesn't work end the script, if ping does work continue or if the server music gets mounted to the created directory continue, if the mount failed, or even in the mounted folder is empty stop the script

what can i do here to ensure i can keep the --delete and not have to worry about losing my music if the mount fails?

View 9 Replies View Related

Ubuntu :: Sync Local Folders - Not Unison Or Rsync?

Apr 14, 2011

I need a program to run on Ubuntu that must be easily set up to do a series of different cloning operations at specific times between the USB drives on a single Ubunu pc, depending on the day of the week." So on Monday folder B is forced to match folder A, Tuesday C forced to equal D ... and on Sunday a whole bunch of these clonings happen. This must all run unattended (at 2am) and be robust with no "what do you want to do next messages" or having the whole thing give up if there is a problem with one file. Though I do need a log of success or failure. Windows programs that do this stuff are FolderClone and GoodSync. I looked at Unison and Rsync and one or two others, but none appeared set up to do what I need, or to be excessively complex / general. I don't need something that can sync two copies, or over internet ....

View 5 Replies View Related

Server :: Rsync Can Not Rsync Files With Include Filter

Jul 21, 2010

use rsync to cp such files and dirs under /var/www/html/mydir directory but these two files(/dir4/1.html /dir4/2.html) cant rsync to dest mechine.

rsync configure file,below...

View 2 Replies View Related

Ubuntu :: Sync Folders To A Samba Storage Router (rsync)

Nov 4, 2010

how do I go about using rsync or grsync to sync folders to a samba share in my storage router? the samba share ip is smb://192.168.0.1/usb1-c/ tried using grsync but it says cant find smb!

View 9 Replies View Related

Networking :: Unison/iwatch Sync - Files Disappearing From Server?

Jun 7, 2010

I'm trying to set up a synchronization with unison and iwatch to (more or less) instantly sync files upon change in a directory tree. iwatch calls unison like this:

Code:

unison /home/foo/vhosts/foo/my_vhost/bar.html ssh://server.tld//srv/www/vhostsfoo/bar.html -batch -terse -ui text -owner -group I would expect unison to sync all files between the two servers. However, that is not the case. Everything works fine as long as the files are only created/changed/whatever on the server running unison. If a file is created on the server that unison is synchronizing to, it gets deleted the next time unison is called.

For example:

Code:

on the host running unison:

$ cd /home/foo/vhosts/foo/my_vhost
$ touch foo.bar
-- sshing to remote host ---
$ ssh remote.com

[code]....

$ unison /home/foo/vhosts/foo/my_vhost/foo.bar ssh://remote.com//srv/www/vhosts/foo/foo.bar -batch -terse -ui text -owner -groupI expected that both files get synchronized - foo.bar from the unison server to remote.com and hello_world.html from remote.com to the server running unison. Instead, hello_world.html gets deleted.

I've been working a while on this and don't seem to be able to figure it out. Maybe it's only an argument to unison to rectify it but I couldn't find anything adequate in the manpage either.

View 2 Replies View Related

Networking :: Rsync-like Use Of Rdesktop For Continual Load Of Data Files Off Windows?

Jul 19, 2011

Windows computer continually generates images (AutoGrabnnn). All downstream analysis on linux computer. I need analog of rsync bringing files over as they arise. rdesktop seems to be the approach. Is this already described somewhere to bypass much trial-and-error?

View 2 Replies View Related

General :: How To Copy Only Modified Files

Sep 2, 2010

Possible Duplicate: Linux equivalent to robocopy? I have two websites - one is basically a development version and the other is a production version of the same site. So I'd like to be able to merge the changes made to the development site based on the modified date of the files. Is this possible with the 'cp' command?

View 2 Replies View Related

General :: Search Files Modified In A Specific Day?

Dec 2, 2010

How can I search files modified in a specific day?

View 2 Replies View Related

General :: Upload Only Modified Files To FTP Server

May 23, 2011

I want to upload files from my computer to an FTP site and I don't want to upload files that are already on the server. So I need a tool that finds out which local files that are different from the ones on the server, or that don't exists on the server.

Some requirements:

I'm using a cheap provider that does not support rsync or ssh, so I can only use FTP. I generate the files before uploading them, so comparing timestamps is meaningless. I've tried lftp with the mirror command. It's slow (I think it uploads all the files). I upload the files from different computers, so I can't use sitecopy, which uses a local database to keep track of which files are on the server. I'd like to be able to upload all changed files with one command. Preferably no GUI application. And it needs to run in Ubuntu.

I was thinking about creating a tool similar to sitecopy, but which stores checksums of all the files on the FTP server on the server itself. But then I thought that there may already be such a tool.

View 1 Replies View Related

General :: Copy Only Files The Have Been Modified Today?

Jan 22, 2011

How can I make copy only files the have been modified today

as far as get

Code:
find myworkingfolder -ctime 0|xargs -i cp {}-ap bakupfolder

Is it ctime or mtime? and how i add this command to crontab?.

View 2 Replies View Related

General :: Display The Last 10 Modified Files Of A Folder?

Jul 23, 2010

I need to know the last 10 modified files in a folder.

View 8 Replies View Related

Red Hat :: List Modified Configuration Files [ CentOS 5.4 ]?

Feb 20, 2010

I am searching for a program which may be used in order to display a list of modified (non-distribution-default) configuration files. For example, assume we have installed package "example-utility" which uses /etc/example-utility.conf as one of its configuration files. The package provides a default configuration file upon its installation. Assume we have modified /etc/example-utility.conf according to our needs. This file should be included in the listing produced by the program I am looking for.

If such a tool does not exist, I would like to create it. However, I am new to RPM-based systems, and, as such, I am having difficulties finding the necessary documentation. Should I be reading the yum source code? Is there some sort of document describing the package database on RH/CentOS/etc. systems and how 3rd party applications are supposed to work with this database?

View 6 Replies View Related

Fedora :: Script For Collecting Metadata On Modified Files

Nov 30, 2010

I have a simple scripting question. I am trying to list all files that have been modified in the last day and then collect metadata on those files. This command is going to be run on a number of nodes via ssh so I would like to append the hostname to start of each line (the below example has blade1 as the hostname). As you can see the loop is splitting the ls command out onto a separate line for each value. What I need to do is keep the `ls -ld` output all on one line and have the hostname echoed in front of each line.

for i in `find /var -mtime -1 | xargs ls -ld`; do echo `hostname` $i; done
blade1 drwxr-xr-x.
blade1 2
blade1 user
blade1 group
blade1 4096
blade1 Nov
blade1 30
blade1 08:55
blade1 /var/cache/gdm/user

View 8 Replies View Related

Ubuntu :: Backup NTFS Files Modified After A Certain Date?

May 14, 2010

I clone my entire notebook hdd once a month to a USB drive with an identical disk once a month using dd. I would like to find a way to automatically or manually do incremental backups at shorter intervals.

The first problem is that my incremental backup drive is not the same as my full backup drive (which is my clone). Is there some way to backup or copy all files on a document partition modified after a certain date?

The second problem is that my document partition is NTFS-3G. I guess this could be done pretty easily using "dump" if I stored my docs on ext. [I don't because I want to make sure that my docs are accessible from any machine (say in an Internet cafe) should my MacBook die and I need to rip out the hard drive and run to do my homework on another system; that is why I keep my docs on my Vista partition].

View 1 Replies View Related

Ubuntu Installation :: List Modified System Files?

Aug 12, 2011

I'm about to do a migration on a laptop where I have had to make a number of modifications to files mainly in /etc/ but I have lost track of what I have done. Does anyone have any suggestions as to how to identify those files that have been modified from their packaged versions?

View 3 Replies View Related

General :: Find All Files Modified In Date Range

Apr 30, 2010

I need to know all files modified within a date and time range.E.g: All modified files between 20 April 2010, 1100-1200 Hrs."find / -mtime +10 ! -mtime +11" :: this i found for date but how to include time as well.

View 2 Replies View Related

General :: Script To Display Modified Date&time Of Files?

May 31, 2010

I am using the following script to creates list of accessed files.I like to add modified date and time of accessed files in the output.

For this what needs to be added in the below script??

#!/bin/bash
#
# creates list of accessed files
#
set $(date)
find /hdc160GB/programmers/projects -cmin -1440 > /hdc160GB/programmers/data/fileschanged/alert_$6-$2-$3.txt

View 7 Replies View Related

General :: Copy Files Less Than 7 Days Old?

May 6, 2011

I have searched for a way to copy file less than X days old and I found this:http://www.howtogeek.com/howto/ubunt...days-on-linux/ The syntax for deleting files less than 7 days old would be like this:find /path/to/files* -mtime -7 -exec rm {} ;I would like to copy the files to mntas, and I'm not sure what the syntax should be.ould this work?find /path/to/files* -mtime -7 -exec cp {} mnt
as ;

View 3 Replies View Related

General :: Finding Files Exactly 7 Days Old?

Apr 19, 2010

i am a newbie in linux ,i am writing a bash script to identify the files which are exactly 7 days ( a week old) i tried this command find /var/backup -mtime +7 -exec ls -d {} ;but this gives me even the files which are older than 7 days

[root@proxy access]# find . -mtime +7 -exec ls -d {} ;
./access.log.1.gz
./access.log.2.gz

[code]...

View 3 Replies View Related

Ubuntu :: Sequentially Number Files Based On Date Modified - Rename Cli

Nov 8, 2010

Sequentially number files based on date modified (rename cli)

I'm almost done a larger script which takes all the pictures in a folder, converts it to video, and emails it to me. Everything worked fine until I realized the picture filenames weren't always starting at 1, then ffmpeg chokes.

I have a bunch of files in a folder which I need to rename to:

I don't want to install any additional packages and I'd like this to run in a single command if possible.

If not possible, then a bash script would work too.

View 3 Replies View Related

OpenSUSE Network :: Move Files After N Days?

Sep 24, 2010

I have a script that moves files after 60 days from the FTP folder over to a trash folder which is not accessible by the FTP. From there I can delete the files whenever the drive get's full. That works fine so far.
The only thing that bothers me is that files moved to ".Trash" are not in any folder structure anymore (one big directory with the deleted files in it).

When I do a "ls -la" on the array {} I see the file names including the folders. I'm not sure if the find command or the mv command forgets about the directories.

This is the script: bash -c 'date;find /Volumes/data1/test/ -mtime +60 -type f -exec mv {} /Volumes/data1/.Trash/ ;;date' >> ~/mylog

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved