Friends,
I am trying to create a script for use with multiple users on my Ubuntu system. I want to use cp, essentially in this way:
Code:
cp -rup /home/user1 /media/BACKUP/user1
cp -rup /home/user2 /media/BACKUP/user2
cp -rup /home/user3 /media/BACKUP/user3
...
If I can lick my problem, I'll write a small shell script and call it from cron. My problem is that when I use cp -rup, it backs up all the hidden files in the users' home directories, such as the ones that begin with a period. I don't want to back up things like .bash_history or any of the program configurations -- I just want data files.
Has anyone figured this out? I've tried searching through the forum for people doing this another way, say, with rsync -- but I couldn't find what I was looking for...
Edit 2006-10-30: I forgot to mention, I can certainly do what I'm after by dragging and dropping the files via nautilus; it's just that I want to script this activity...
Bookmarks