Yes you can do that , use command chaining (&& operator)

Regards,
Siddharth Mane


--- On Tue, 2/24/09, ramesh_net10 <[email protected]> wrote:
From: ramesh_net10 <[email protected]>
Subject: [Linux_Mantra] Re: move date
To: [email protected]
Date: Tuesday, February 24, 2009, 9:23 PM











    
            Hi Jitendra,



Thanks. But can we copy and compressed also in one command ?



--- In Linux_Mantra@ yahoogroups. com, "Jitendra | navin.com"

<jitendra.g@ ...> wrote:

>

> Hi Ramesh,

> 

>  

> 

>  

> 

> find  .  -mtime +4 | scp * IP_OF_REMOTE_ SERVER:/tmp/

> 

>  

> 

> This will copy the files which are more than 4 days older in the current

> folder to the remote server 

> 

>  

> 

> Regards,

> 

> Jitendra

> 

>  

> 

>   _____  

> 

> From: Linux_Mantra@ yahoogroups. com

[mailto:Linux_Mantra@ yahoogroups. com] On

> Behalf Of ramesh_net10

> Sent: Wednesday, February 25, 2009 12:07 PM

> To: Linux_Mantra@ yahoogroups. com

> Subject: [Linux_Mantra] move date

> 

>  

> 

> Dear Friends,

> 

> My /var partion is 100 % full and there is no or very little space in

> other partion also. So I want to move old(older than 6 months)

> mails(around 70-80 GiB) in another machine which is in network.How can

> I do this? I executed 'find <mail path> -type f -iname "*."-ctime +180 '

> to get old mails. I want to move all these mails in another

> machine(suppose in 192.168.1.20 at /var/data) in compressed form in

> one shot.

> 

> 

> 

> 

> 

> [Non-text portions of this message have been removed]

>




 

      

    
    
        
         
        
        








        


        
        


      

[Non-text portions of this message have been removed]

Reply via email to