copy /backup/current/home/≤user>/Maildir -> /home/≤user>/Maildir ?

Emilien Kenler hello at emilienkenler.com
Sat Jul 9 05:23:06 MDT 2011


Louis-David Mitterrand <vindex+lists-rsync <at> apartia.org> writes:

> 
> Hi,
> 
> How can I copy each /backup/current/home/≤user>/Maildir into
> /home/≤user>/Maildir ?
> 
> Thanks,


Hi,

you can try this

for i in /backup/current/home/ ; do 
cp /backup/current/home/${i}/Maildir /home/${i}/Maildir; 
done



More information about the rsync mailing list