Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mirko@mirko-laptop:~$ mkdir backup
- mirko@mirko-laptop:~$ mkdir -p dirprova/a
- mirko@mirko-laptop:~$ mkdir -p dirprova/b
- mirko@mirko-laptop:~$ touch dirprova/a/file1
- mirko@mirko-laptop:~$ touch dirprova/b/file2
- mirko@mirko-laptop:~$ touch dirprova/altro
- mirko@mirko-laptop:~$ ls -R dirprova/
- dirprova/:
- a altro b
- dirprova/a:
- file1
- dirprova/b:
- file2
- mirko@mirko-laptop:~$ ./sincro.sh
- mirko@localhost's password:
- mirko@localhost's password:
- Warning: No archive files were found for these roots, whose canonical names are:
- /home/mirko/dirprova
- //mirko-laptop//home/mirko/backup
- This can happen either
- because this is the first time you have synchronized these roots,
- or because you have upgraded Unison to a new version with a different
- archive format.
- Update detection may take a while on this run if the replicas are
- large.
- Unison will assume that the 'last synchronized state' of both replicas
- was completely empty. This means that any files that are different
- will be reported as conflicts, and any files that exist only on one
- replica will be judged as new and propagated to the other replica.
- If the two replicas are identical, then no changes will be reported.
- If you see this message repeatedly, it may be because one of your machines
- is getting its address from DHCP, which is causing its host name to change
- between synchronizations. See the documentation for the UNISONLOCALHOSTNAME
- environment variable for advice on how to correct this.
- Donations to the Unison project are gratefully accepted:
- http://www.cis.upenn.edu/~bcpierce/unison
- Press return to continue.[<spc>]
- local mirko-laptop
- dir ----> a
- file ----> altro
- dir ----> b
- Proceed with propagating updates? [] y[BGN] Copying a from /home/mirko/dirprova to //mirko-laptop//home/mirko/backup
- [BGN] Copying altro from /home/mirko/dirprova to //mirko-laptop//home/mirko/backup
- [BGN] Copying b from /home/mirko/dirprova to //mirko-laptop//home/mirko/backup
- [END] Copying altro
- [END] Copying a
- [END] Copying b
- Synchronization complete at 18:44:15 (3 items transferred, 0 skipped, 0 failed)
- mirko@mirko-laptop:~$ ls -R backup/
- backup/:
- a altro b
- backup/a:
- file1
- backup/b:
- file2
- mirko@mirko-laptop:~$ cat .rsyncremote/070911184404.log
- UNISON 2.32.52 started propagating changes at 18:44:15 on 07 Sep 2011
- [BGN] Copying a from /home/mirko/dirprova to //mirko-laptop//home/mirko/backup
- [BGN] Copying altro from /home/mirko/dirprova to //mirko-laptop//home/mirko/backup
- [BGN] Copying b from /home/mirko/dirprova to //mirko-laptop//home/mirko/backup
- [END] Copying altro
- [END] Copying a
- [END] Copying b
- UNISON 2.32.52 finished propagating changes at 18:44:15 on 07 Sep 2011
- Synchronization complete at 18:44:15 (3 items transferred, 0 skipped, 0 failed)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement