I want to create backups of certain files which are in /home directory.
find /root/ -name 'wallet.dat' -exec cp {} /home/backup \;
I also want to change the name of the backup file to a particular format.
The files are always in a structure like this: /home/<coinname>/.<coinname>/wallet.dat. And I want the backup file to be named <coinname>-wallet.dat so the folder /home/backup has following files:
- bitcoin-wallet.dat
- dogecoin-wallet.dat
How can I do this?