I need to write a backup script. I need to be able to run the script from any computer and have it pull the username and date as the directory name. Each computer has an admin account and a user account. How can I pull the user account from a script and use it to name the backed up directory?
How do I create a folder with a username and date as the folder name?
shell script
folder name example: joe--2014-01-31folder_name=${USER}--$(date +%Y-%m-%d)mkdir $folder_name