I try to use one line command to copy file with date and I cannot get it works. Any idea what is my error?
rsync -r /home/user/test /home/user2/backup'date +%D'
I want to copy file test to folder user2 and change name to backup+date.
But I dont want to use variable and more then one line command. What's wrong to command above?