My mother has a laptop and I have just finished installing Ubuntu 9.10 64bit on a separate partition (not Wubi). However, she frequently uses Google Picasa for her photo management and she might use Windows one day and Ubuntu the next. I rsync-ed her photos over from her Vista account to her new Ubuntu account for this, and running rsync on its own works perfectly.
What I want to do is have rsync automatically copy new files from Vista's NTFS partition on login and on logout have it copy things back (with rsync, of course, like I've been using before). I've tried putting rsync commands in .bashrc and .bash_logout like some people suggest, but they aren't working for some reason! If I run the commands I set after I log in, they work perfectly.
Here's how I've set my commands:
Any help would be appreciated! None of the above types of commands work when they're in those files, but they work fine when I use them after login.
rsync -a [win directory] [ubuntu directory] #this is for restoring any changes from Windows (goes in .bashrc)
rsync -a [ubuntu directory] [win directory] #this is for syncing changes with windows (goes in .bash_logout)