Hello everyone!
I am attempting to copy all my data from my work PC to a backup file server in the office. Now when for some reason when I run the following command on my work PC to copy all my files to my backup server, I am not getting the desired result and I think there is something wrong with my command but I don't know what needs to be changed.
Please keep in mind that this is the 1st time I am running the command so that is why I did not start with Rsync however once a bulk of the files are moved over, then I will simply enable Rsync in Cron to keep the two machines synced.
The command I am running is:
Code:
time tar -cjf - --exclude=.* /home/carlwill/ | ssh root@10.1.1.29 tar -xpjvf - -C /backup/carlwill/
When I run the above command, every home/ directory is being recursivly moved to the destination server as well as mine which is not what I want. When all is said and done, I have the following on my backup server:
/backup/carlwill/
home/carlwill
The bold above is redundant recursive directories moved from my command. I simply wanted all data from /home/carlwill/* to be moved into /backup/carlwill/ and nothing more.
What did I do wrong?