Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all, sorry for disturb your time, need help please .
Can i search file in linux using find command to search file which
had been modified by user samba in between time from 8am till 5pm ?
i need that for my process backup so the hd backup will backup just the file which had been modified not all files.
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
First of all, you can't tell who modified the file. You can only tell when it was last modified. Second, I'm a little puzzled by your 8 to 5. Wouldn't you want anything that had been modified since your last backup? If someone came in early or stayed late and modified files, then . . .
Anyway, check the man page for find. The search `find / -mmin -480` will find all files that were modified in the last 8 hours. Run that search at 5pm, and you have what you want.
but i have a question again can i use some option on rsync maybe include files or exclude(to block *.mp3 files when backup process) cause i had try
something like this:
Code:
find /home/* -type f -mtime 0 >> find.txt
from that find.txt files it's contains full path directory files and i just want to try to use rsync for backup using that find.txt file so rsync just backup files with the directory on based on that find.txt files, here i post some of that files:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.