Posted on 07-23-2014 12:56 PM
Does anyone know how to do folder redirection of a users Documents and Pictures folders to a folder in Google Drive if it is installed? I'm thinking of creating a symlink via script but I wanted to know if anyone has a method that has worked for them.
Solved! Go to Solution.
Posted on 07-23-2014 03:38 PM
symlink via script would be the way to go. pretty straight forward move the folders into the google drive folder and them symlink them back into the home folder
Posted on 08-15-2014 01:22 PM
Thanks for the guidance on this. Rather than creating a script that would run based on a Policy, we decided to do this manually in our deployment process. For anyone else interested, this is what we ended up using for our deployments.
# Move local user's Documents folder into Google Drive
sudo mv $HOME/Documents $HOME/Google Drive/Documents
#Symlink the Google Drive Documents back to the local folder
ln -s $HOME/Google Drive/Documents $HOME/Documents
# Move local user's Pictures folder into Google Drive
sudo mv $HOME/Pictures $HOME/Google Drive/Pictures
#Symlink the Google Drive Pictures back to the local folder
ln -s $HOME/Google Drive/Pictures $HOME/Pictures
Posted on 07-23-2014 03:38 PM
symlink via script would be the way to go. pretty straight forward move the folders into the google drive folder and them symlink them back into the home folder
Posted on 08-13-2014 11:27 AM
Thank you for the response calumhunter. Sorry I didn't respond sooner. I plan on make a script to symlink the folders as suggested. Do you or anyone else have a sample script they have used for this task?
Posted on 08-15-2014 01:22 PM
Thanks for the guidance on this. Rather than creating a script that would run based on a Policy, we decided to do this manually in our deployment process. For anyone else interested, this is what we ended up using for our deployments.
# Move local user's Documents folder into Google Drive
sudo mv $HOME/Documents $HOME/Google Drive/Documents
#Symlink the Google Drive Documents back to the local folder
ln -s $HOME/Google Drive/Documents $HOME/Documents
# Move local user's Pictures folder into Google Drive
sudo mv $HOME/Pictures $HOME/Google Drive/Pictures
#Symlink the Google Drive Pictures back to the local folder
ln -s $HOME/Google Drive/Pictures $HOME/Pictures
Posted on 10-29-2014 09:32 AM
I am wondering how i can do this as part of the imaging process. Currently I use deploy studio to dump the image and install apps, then join AD. At this point, the user logs in and it creates the home folder on the drive. Then they open Google Drive and have to sign in and run the quick wizard. At that point the Google Drive folder is created in their home folder. I would like to be able to have their documents, desktop, photo, and music folder then be moved to the google drive with the links created then. Is it possibke to script this automagically after they sign into google drive and the folder is created? I hope that makes sense....