Shell script to copy all folders older than 7 days from Linux to Windows by samba
Hi all,
I want to make the script to copy all folders which older than 7 days from Linux server to Windows server by Samba. And make it automatically by using cron Pls help me. |
Hi,
Split your question into 3 parts: - mount your remote shared folder from Windows with mount -t cifs ... - find all folders older than 7 days with find, --types, and -mtime - copy it |
Thank you, quanta
You make me clear about the step to do However, I'm newbie of Linux so could you please help me to make the script? |
Try to make your script for yourself first, we will help you.
|
Hi,
I understand and tried to make by myselft already. If it has any problem I couldn't solve, Pls help me. |
All times are GMT -5. The time now is 06:00 AM. |