rsync option --log-file seems not to be working
up vote
1
down vote
favorite
I am using the --log-file
option in rsync to see the logs. But when I tried to run, it says:
--log-file unrecognized option
Here is my command:
#/usr/bin/rsync -av -u --log-file="/sreeni/log.txt" --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni
could some one help me with the right syntax ?
I tried these options also.
#/usr/bin/rsync -av -u --log-file /sreeni/log.txt --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni
and
#/usr/bin/rsync -av -u --log-file="/sreeni/log.txt" --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni
rsync
migrated from stackoverflow.com Nov 12 '11 at 13:11
This question came from our site for professional and enthusiast programmers.
add a comment |
up vote
1
down vote
favorite
I am using the --log-file
option in rsync to see the logs. But when I tried to run, it says:
--log-file unrecognized option
Here is my command:
#/usr/bin/rsync -av -u --log-file="/sreeni/log.txt" --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni
could some one help me with the right syntax ?
I tried these options also.
#/usr/bin/rsync -av -u --log-file /sreeni/log.txt --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni
and
#/usr/bin/rsync -av -u --log-file="/sreeni/log.txt" --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni
rsync
migrated from stackoverflow.com Nov 12 '11 at 13:11
This question came from our site for professional and enthusiast programmers.
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am using the --log-file
option in rsync to see the logs. But when I tried to run, it says:
--log-file unrecognized option
Here is my command:
#/usr/bin/rsync -av -u --log-file="/sreeni/log.txt" --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni
could some one help me with the right syntax ?
I tried these options also.
#/usr/bin/rsync -av -u --log-file /sreeni/log.txt --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni
and
#/usr/bin/rsync -av -u --log-file="/sreeni/log.txt" --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni
rsync
I am using the --log-file
option in rsync to see the logs. But when I tried to run, it says:
--log-file unrecognized option
Here is my command:
#/usr/bin/rsync -av -u --log-file="/sreeni/log.txt" --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni
could some one help me with the right syntax ?
I tried these options also.
#/usr/bin/rsync -av -u --log-file /sreeni/log.txt --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni
and
#/usr/bin/rsync -av -u --log-file="/sreeni/log.txt" --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni
rsync
rsync
edited Jul 10 '15 at 22:35
Sopalajo de Arrierez
3,87883878
3,87883878
asked Nov 12 '11 at 9:32
user1017735
migrated from stackoverflow.com Nov 12 '11 at 13:11
This question came from our site for professional and enthusiast programmers.
migrated from stackoverflow.com Nov 12 '11 at 13:11
This question came from our site for professional and enthusiast programmers.
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
up vote
0
down vote
Which is your distro?
For an agnostic distro aproach you can use simple output redirection.
rsync your_chosen_options >> chosen_logfile 2>&1
which turns into,
/usr/bin/rsync -av -u /sreeni nnmhpt20.ind.hp.com:/sreeni >> /sreeni/log.txt 2>&1
Anyways for Debian based boxes, this seems to work,
rsync -av -u --log-file=/var/log/atest.log SRC DEST 2>&1 1>/dev/null
whereas for RHEL I needed,
rsync -av -u SRC DEST 1>>/var/log/atest.log 2>/dev/null
add a comment |
up vote
0
down vote
this expression works for me (ubuntu 12.10):
sudo rsync -axzuvh --force --delete --no-whole-file --log-file=/var/log/atest.log SRC DEST
remember using sudo.
add a comment |
up vote
0
down vote
I found this way works for me:
rsync -av /source/directory/ /destination/directory/ &> ~/todaysDate-sync.log &
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Which is your distro?
For an agnostic distro aproach you can use simple output redirection.
rsync your_chosen_options >> chosen_logfile 2>&1
which turns into,
/usr/bin/rsync -av -u /sreeni nnmhpt20.ind.hp.com:/sreeni >> /sreeni/log.txt 2>&1
Anyways for Debian based boxes, this seems to work,
rsync -av -u --log-file=/var/log/atest.log SRC DEST 2>&1 1>/dev/null
whereas for RHEL I needed,
rsync -av -u SRC DEST 1>>/var/log/atest.log 2>/dev/null
add a comment |
up vote
0
down vote
Which is your distro?
For an agnostic distro aproach you can use simple output redirection.
rsync your_chosen_options >> chosen_logfile 2>&1
which turns into,
/usr/bin/rsync -av -u /sreeni nnmhpt20.ind.hp.com:/sreeni >> /sreeni/log.txt 2>&1
Anyways for Debian based boxes, this seems to work,
rsync -av -u --log-file=/var/log/atest.log SRC DEST 2>&1 1>/dev/null
whereas for RHEL I needed,
rsync -av -u SRC DEST 1>>/var/log/atest.log 2>/dev/null
add a comment |
up vote
0
down vote
up vote
0
down vote
Which is your distro?
For an agnostic distro aproach you can use simple output redirection.
rsync your_chosen_options >> chosen_logfile 2>&1
which turns into,
/usr/bin/rsync -av -u /sreeni nnmhpt20.ind.hp.com:/sreeni >> /sreeni/log.txt 2>&1
Anyways for Debian based boxes, this seems to work,
rsync -av -u --log-file=/var/log/atest.log SRC DEST 2>&1 1>/dev/null
whereas for RHEL I needed,
rsync -av -u SRC DEST 1>>/var/log/atest.log 2>/dev/null
Which is your distro?
For an agnostic distro aproach you can use simple output redirection.
rsync your_chosen_options >> chosen_logfile 2>&1
which turns into,
/usr/bin/rsync -av -u /sreeni nnmhpt20.ind.hp.com:/sreeni >> /sreeni/log.txt 2>&1
Anyways for Debian based boxes, this seems to work,
rsync -av -u --log-file=/var/log/atest.log SRC DEST 2>&1 1>/dev/null
whereas for RHEL I needed,
rsync -av -u SRC DEST 1>>/var/log/atest.log 2>/dev/null
answered Nov 12 '11 at 11:46
Joao Figueiredo
22114
22114
add a comment |
add a comment |
up vote
0
down vote
this expression works for me (ubuntu 12.10):
sudo rsync -axzuvh --force --delete --no-whole-file --log-file=/var/log/atest.log SRC DEST
remember using sudo.
add a comment |
up vote
0
down vote
this expression works for me (ubuntu 12.10):
sudo rsync -axzuvh --force --delete --no-whole-file --log-file=/var/log/atest.log SRC DEST
remember using sudo.
add a comment |
up vote
0
down vote
up vote
0
down vote
this expression works for me (ubuntu 12.10):
sudo rsync -axzuvh --force --delete --no-whole-file --log-file=/var/log/atest.log SRC DEST
remember using sudo.
this expression works for me (ubuntu 12.10):
sudo rsync -axzuvh --force --delete --no-whole-file --log-file=/var/log/atest.log SRC DEST
remember using sudo.
answered May 11 '13 at 19:31
moltisanti
16112
16112
add a comment |
add a comment |
up vote
0
down vote
I found this way works for me:
rsync -av /source/directory/ /destination/directory/ &> ~/todaysDate-sync.log &
add a comment |
up vote
0
down vote
I found this way works for me:
rsync -av /source/directory/ /destination/directory/ &> ~/todaysDate-sync.log &
add a comment |
up vote
0
down vote
up vote
0
down vote
I found this way works for me:
rsync -av /source/directory/ /destination/directory/ &> ~/todaysDate-sync.log &
I found this way works for me:
rsync -av /source/directory/ /destination/directory/ &> ~/todaysDate-sync.log &
answered May 10 '15 at 14:48
D.Zou
1286
1286
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f356671%2frsync-option-log-file-seems-not-to-be-working%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown