Curtis Vaughan: > I need to rsync several, but not all, the Maildir directories under /home. > I have a file with all the user accounts, so what would the script be to > say take each user account name and then rsync up each Maildir directory. > > The rsync command would be: > > rsync -arv ./[username]/Maildir/ root@[computer]:/home/[username]/Maildir/ > > I have already gone through each user's directory and manually done each > one over the course of the week. Now I want to be able to sink up using a > single command.
for user in alice bob mallory; do rsync -arv ./${user}/Maildir/ root@[computer]:/home/${user}/Maildir/ done J. -- After the millenium I will shoot to kill. [Agree] [Disagree] <http://www.slowlydownward.com/NODATA/data_enter2.html>
signature.asc
Description: Digital signature