Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rdist Files in Last 30 Days

Status
Not open for further replies.

Michael42

Programmer
Oct 8, 2001
1,454
US
Hello,

I am struggling a bit with the syntax for rdist. How can I rdist files from one system to another where I am just copying files created in the last 30 days?

Thanks,

Michael42
 
Hi,

I would use the find command to find all files created (or modified) in the last 30 days and then use rdist to distribute the files.

Example:

touch -t 200407030000.00 /tmp/newfile
find /path -type f -newer /tmp/newfile >list.txt

Will produce a list of all regular files created or modified in the last 30 days in list.txt.

You could then use this list with rdist.

-Joe
 
Never used rdist, but possibly use find with the -mtime -30 flag to create a list of files to send, then use rdist to send them? By no means perfect in terms of creation time, but a possibility?
 
Hi,

I forgot to mention....

rdist is not secure and I would suggest switching to ssh (scp).

Another method, also unsecure, is to user rsync or if you're are doing this in a Solaris environment or have a Solaris box available, is to use filesync.

Take a look at the man pages for rsync and filesync. I use filesync for most all things and it is very reliable.

-Joe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top