Chce napisać skrypt bacupujacy dane za pomaca rsynca i np.:
Kod: Zaznacz cały
#!/bin/bash
rsync -backup -av /home/costam/ /home/gdziestam/
Kiedy skrypt wykona poprawnie operacje dostaje przykładowo
Kod: Zaznacz cały
building file list ... done
sent 14689 bytes received 20 bytes 9806.00 bytes/sec
total size is 31610624 speedup is 2149.07
Kod: Zaznacz cały
building file list ... rsync: link_stat "/home/costam/." failed: No such file or directory (2)
done
sent 29 bytes received 20 bytes 98.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files could not be transferred (code 23) at main.c(977) [sender=2.6.9]
Kod: Zaznacz cały
#!/bin/bash
rsync -backup -av /home/costam/ /home/gdziestam/ > logi.txt
Kod: Zaznacz cały
building file list ... done
sent 14689 bytes received 20 bytes 9806.00 bytes/sec
total size is 31610624 speedup is 2149.07
Kod: Zaznacz cały
rsync: link_stat "/home/costam/." failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at main.c(977) [sender=2.6.9]
Kod: Zaznacz cały
building file list ... done
sent 14689 bytes received 20 bytes 9806.00 bytes/sec
total size is 31610624 speedup is 2149.07
pozdrawiam