Hello all,
I have been trying to use rsync to keep files updated between two computers. I have tried this with mock file and all seems to work. however when I do it for real it just creats another file of the same name with in the file. My rsync code is
Code:
rsync -vra tommy@192.168.1.5:/home/tommy/fortran /home/tommy/fortran
I have also tried
Code:
rsync -vrU tommy@192.168.1.5:/home/tommy/fortran /home/tommy/fortran
As I understand it both of these should end up updating the files and folders within ~/fortran however what happens is I end up with all of my old files still with in ~/fortran and in ~/fortran/fortran/
e.g
Code:
~/fortran $ ls -l
total 6
drwxr-xr-x 4 tommy users 1648 Jul 10 09:53 ValidatedStrain
drwxr-xr-x 9 tommy users 256 Aug 3 10:23 fortran
######### My backeding up file has just created a new file all other files are old!###################
drwxr-xr-x 5 tommy users 1688 Jul 10 09:53 random_methods
drwxr-xr-x 2 tommy users 1368 Jul 10 09:54 repeatestrain
drwxr-xr-x 3 tommy users 104 Jul 10 09:54 safe_copy_of_stokesian
drwxr-xr-x 4 tommy users 1592 Jul 10 09:54 shear
drwxr-xr-x 4 tommy users 880 Jul 10 09:54 testing
drwxr-xr-x 2 tommy users 272 Jul 10 09:54 testout
I end up with new copies of all of the files. Please help as it is becoming very difficult keeping track of things. As with every question I ask this is probibly very simple but I am a very simple guy!