LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 05-28-2009, 07:20 PM   #16
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122

No probs.

BM
 
Old 05-29-2009, 12:37 AM   #17
b-RAM
Member
 
Registered: Apr 2009
Distribution: OpenSuse, Slackware
Posts: 70

Original Poster
Rep: Reputation: 15
Thank's to all and sorry for reply at this time cause i've got some problem connection and
i will try that advise and my friend told me to use xargs with pipe but i think as long
i use -type f on the find command it's always same results just the file not include directory
and if i not use -type f it's backup all files with the directory.
Anyway i've got some site which provide some backup script:
http://www.donneker.de/projects/shell-backup-scripts/
What do you think ?, i've try that script on my pc not server but it's confused me and it is polite if i try to ask that script author about my situation and condition.

Thanks to you all.
regards,
b-RAM
 
Old 05-29-2009, 01:46 AM   #18
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You can use xargs instead of -exec - something like
Code:
find /var/lib/samba -daystart -newer $INCREMENT -type f -print0 | xargs -0 tar --selinux -rf "$DEST"
It's effectively the same thing (there are differences in how the shell treats them though)

Can you show the exact command you are now trying?
 
Old 05-29-2009, 02:15 AM   #19
b-RAM
Member
 
Registered: Apr 2009
Distribution: OpenSuse, Slackware
Posts: 70

Original Poster
Rep: Reputation: 15
BM, i think if i still use -type f on command find it's just only backup/
copy the file not include the directory that files saved, command i've just try :
Code:
find /home/* -type f -type d -mtime0 -print | more
it not shows anything , if you said about xargs can do something, first i will read the man pages of that command.

Thank's a lot
 
Old 05-29-2009, 02:27 AM   #20
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
There needs to be a space between mtime and 0. Don't bother with doing anything with the files until you know it's picking something up.
 
Old 05-29-2009, 02:31 AM   #21
b-RAM
Member
 
Registered: Apr 2009
Distribution: OpenSuse, Slackware
Posts: 70

Original Poster
Rep: Reputation: 15
Sorry BM, i've just mistype on my previous post at pc i typed with space between mtime and 0.
i'm sorry.
Thank you,
 
Old 05-29-2009, 02:37 AM   #22
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Then perhaps nothing was modified within the last hour
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
find & rsync script simon_bagola Linux - Newbie 13 01-15-2011 07:33 AM
Rsync Command Skips Directories? carlosinfl Linux - General 1 12-10-2008 11:28 AM
Exclude function On rsync command its_joy Linux - Server 5 01-18-2008 04:25 AM
rsync config files, cant find em! fyr3 Slackware 1 07-20-2007 02:11 PM
Command to combine several files as a single file, etc. satimis *BSD 3 06-10-2004 03:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration