Is it possible to write the same shell script file in node js
- providing my code below
cd /home/webapps/project1/folder1 for f in *.csv do cp -v $f /home/webapps/project1/folder2/${f%.csv}$(date +%m%d%y).csv done
- what I am trying to achieve is given below
I have a folder in my server which contains some files. These are automated that means everyday we get new files automatically which will overwrite the old ones. So want to take a back up for this data. How can i copy all these files in to a another folder by renaming the files with current date while copying.
Aucun commentaire:
Enregistrer un commentaire