This mounts the whole 'Volume_1' share under '/media/nas01'
//192.168.0.4/Volume_1 /media/nas01 cifs username=user1,password=pass1,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
This started as a place to store any text or info I don't want to lose. I could just open up Notepad on my PC but some thing might come in useful to the great peoples of the Internet. Welcome!
//192.168.0.4/Volume_1 /media/nas01 cifs username=user1,password=pass1,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
#!/bin/bash ## Variables ## orig_location="/home/user/Desktop" orig_name="*.png" new_location="/media/nas01/private/documents/records/screen_grabs" ## Script ## # file all files in original location with original name and loop thru following... find ${orig_location} -iname "${orig_name}" | while read FILE; do # Use 'stat' to extract the modification time mtime=($(stat -c "%y" "${FILE}")) # get the name (without path) and convert to lower NFILE=($(echo $(basename ${FILE}) | tr '[:upper:]' '[:lower:]')) # move the file to new location and prepend create time to filename mv -f "${FILE}" "${new_location}/${mtime[0]//-/}_${NFILE}" done