Advertisement
mirkop1988

Sincro prova

Sep 7th, 2011
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.81 KB | None | 0 0
  1. mirko@mirko-laptop:~$ mkdir backup
  2. mirko@mirko-laptop:~$ mkdir -p dirprova/a
  3. mirko@mirko-laptop:~$ mkdir -p dirprova/b
  4. mirko@mirko-laptop:~$ touch dirprova/a/file1
  5. mirko@mirko-laptop:~$ touch dirprova/b/file2
  6. mirko@mirko-laptop:~$ touch dirprova/altro
  7. mirko@mirko-laptop:~$ ls -R dirprova/
  8. dirprova/:
  9. a  altro  b
  10.  
  11. dirprova/a:
  12. file1
  13.  
  14. dirprova/b:
  15. file2
  16. mirko@mirko-laptop:~$ ./sincro.sh
  17. mirko@localhost's password:
  18. mirko@localhost's password:
  19. Warning: No archive files were found for these roots, whose canonical names are:
  20.     /home/mirko/dirprova
  21.     //mirko-laptop//home/mirko/backup
  22. This can happen either
  23. because this is the first time you have synchronized these roots,
  24. or because you have upgraded Unison to a new version with a different
  25. archive format.  
  26.  
  27. Update detection may take a while on this run if the replicas are
  28. large.
  29.  
  30. Unison will assume that the 'last synchronized state' of both replicas
  31. was completely empty.  This means that any files that are different
  32. will be reported as conflicts, and any files that exist only on one
  33. replica will be judged as new and propagated to the other replica.
  34. If the two replicas are identical, then no changes will be reported.
  35.  
  36. If you see this message repeatedly, it may be because one of your machines
  37. is getting its address from DHCP, which is causing its host name to change
  38. between synchronizations.  See the documentation for the UNISONLOCALHOSTNAME
  39. environment variable for advice on how to correct this.
  40.  
  41. Donations to the Unison project are gratefully accepted:
  42. http://www.cis.upenn.edu/~bcpierce/unison
  43.  
  44. Press return to continue.[<spc>]
  45. local          mirko-laptop      
  46. dir      ---->            a  
  47. file     ---->            altro  
  48. dir      ---->            b  
  49.  
  50. Proceed with propagating updates? [] y[BGN] Copying a from /home/mirko/dirprova to //mirko-laptop//home/mirko/backup
  51. [BGN] Copying altro from /home/mirko/dirprova to //mirko-laptop//home/mirko/backup
  52. [BGN] Copying b from /home/mirko/dirprova to //mirko-laptop//home/mirko/backup
  53. [END] Copying altro
  54. [END] Copying a
  55. [END] Copying b
  56. Synchronization complete at 18:44:15  (3 items transferred, 0 skipped, 0 failed)
  57. mirko@mirko-laptop:~$ ls -R backup/
  58. backup/:
  59. a  altro  b
  60.  
  61. backup/a:
  62. file1
  63.  
  64. backup/b:
  65. file2
  66. mirko@mirko-laptop:~$ cat .rsyncremote/070911184404.log
  67. UNISON 2.32.52 started propagating changes at 18:44:15 on 07 Sep 2011
  68. [BGN] Copying a from /home/mirko/dirprova to //mirko-laptop//home/mirko/backup
  69. [BGN] Copying altro from /home/mirko/dirprova to //mirko-laptop//home/mirko/backup
  70. [BGN] Copying b from /home/mirko/dirprova to //mirko-laptop//home/mirko/backup
  71. [END] Copying altro
  72. [END] Copying a
  73. [END] Copying b
  74. UNISON 2.32.52 finished propagating changes at 18:44:15 on 07 Sep 2011
  75. Synchronization complete at 18:44:15  (3 items transferred, 0 skipped, 0 failed)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement