rsync : Read input from a file and sync accordinglyCan't get rsync to work in daemon-over-ssh modeIs it...
The most efficient algorithm to find all possible integer pairs which sum to a given integer
Simple image editor tool to draw a simple box/rectangle in an existing image
Is there an Impartial Brexit Deal comparison site?
Can I use my Chinese passport to enter China after I acquired another citizenship?
Greatest common substring
What do you call the infoboxes with text and sometimes images on the side of a page we find in textbooks?
Simple recursive Sudoku solver
Teaching indefinite integrals that require special-casing
Is a naturally all "male" species possible?
How did Monica know how to operate Carol's "designer"?
Meta programming: Declare a new struct on the fly
Does "Dominei" mean something?
Calculating the number of days between 2 dates in Excel
Are Warlocks Arcane or Divine?
Simulating a probability of 1 of 2^N with less than N random bits
Have I saved too much for retirement so far?
Giant Toughroad SLR 2 for 200 miles in two days, will it make it?
"lassen" in meaning "sich fassen"
Was the picture area of a CRT a parallelogram (instead of a true rectangle)?
How will losing mobility of one hand affect my career as a programmer?
Organic chemistry Iodoform Reaction
Would it be legal for a US State to ban exports of a natural resource?
How to check participants in at events?
Can I create an upright 7-foot × 5-foot wall with the Minor Illusion spell?
rsync : Read input from a file and sync accordingly
Can't get rsync to work in daemon-over-ssh modeIs it possible to use rsync over sftp (without an ssh shell)?Complex includes/excludes with rsyncHas anyone achieved true differential sync with rsync in ESXi?rsync --files-from specifies folders but does not copy files, recursive does not fix itLooking to list all files/dirs ignored by rsyncs exclude filessh remote command using password-less sudo failswatchdog: behavior of file and sync options?Prevent Rsync and SCP from causing page timeouts on LAMP serverrsync fails when trying transfer data from mounted cifs share from Mac OS 10.7.5
I have a text file which contains the list of files and directories that I want to copy (one on a line). Now I want rsync to take this input from my text file and sync it to the destination that I provide.
I've tried playing around with "--include-from=FILE
" and "--file-from=FILE
" options of rsync but is is just not working
I also tried pre-fixing "+"
on each line in my file but still it is not working.
I have tried coming with various filter PATTERNs as outlined in the rsync man page but it is not working.
Could someone provide me correct syntax for this use case. I've tried above things on Fedora 15, RHEL 6.2 and Ubuntu 10.04 and none worked. So i am definitely missing something.
Many thanks.
linux rsync
bumped to the homepage by Community♦ 8 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have a text file which contains the list of files and directories that I want to copy (one on a line). Now I want rsync to take this input from my text file and sync it to the destination that I provide.
I've tried playing around with "--include-from=FILE
" and "--file-from=FILE
" options of rsync but is is just not working
I also tried pre-fixing "+"
on each line in my file but still it is not working.
I have tried coming with various filter PATTERNs as outlined in the rsync man page but it is not working.
Could someone provide me correct syntax for this use case. I've tried above things on Fedora 15, RHEL 6.2 and Ubuntu 10.04 and none worked. So i am definitely missing something.
Many thanks.
linux rsync
bumped to the homepage by Community♦ 8 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
What does rsync do when it "doesn't work"? It will probably help to give an extract from your list of files. The rest of the command you used may help too.
– Ladadadada
Mar 19 '12 at 8:53
1
The option is--files-from
, not--file-from
. Is that a typo in your question or in the command you tried to run?
– Ladadadada
Mar 19 '12 at 8:58
The problem may be within your file; quote a path of it.
– brownian
Mar 19 '12 at 9:22
I am having a hard time posting the information that I want in the "comments" section. i will get back to you shortly. I will post the file where i ma fetching the input and the command output.
– slayedbylucifer
Mar 19 '12 at 10:15
add a comment |
I have a text file which contains the list of files and directories that I want to copy (one on a line). Now I want rsync to take this input from my text file and sync it to the destination that I provide.
I've tried playing around with "--include-from=FILE
" and "--file-from=FILE
" options of rsync but is is just not working
I also tried pre-fixing "+"
on each line in my file but still it is not working.
I have tried coming with various filter PATTERNs as outlined in the rsync man page but it is not working.
Could someone provide me correct syntax for this use case. I've tried above things on Fedora 15, RHEL 6.2 and Ubuntu 10.04 and none worked. So i am definitely missing something.
Many thanks.
linux rsync
I have a text file which contains the list of files and directories that I want to copy (one on a line). Now I want rsync to take this input from my text file and sync it to the destination that I provide.
I've tried playing around with "--include-from=FILE
" and "--file-from=FILE
" options of rsync but is is just not working
I also tried pre-fixing "+"
on each line in my file but still it is not working.
I have tried coming with various filter PATTERNs as outlined in the rsync man page but it is not working.
Could someone provide me correct syntax for this use case. I've tried above things on Fedora 15, RHEL 6.2 and Ubuntu 10.04 and none worked. So i am definitely missing something.
Many thanks.
linux rsync
linux rsync
edited Mar 19 '12 at 12:42
neolix
348520
348520
asked Mar 19 '12 at 8:27
slayedbyluciferslayedbylucifer
3541423
3541423
bumped to the homepage by Community♦ 8 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 8 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
What does rsync do when it "doesn't work"? It will probably help to give an extract from your list of files. The rest of the command you used may help too.
– Ladadadada
Mar 19 '12 at 8:53
1
The option is--files-from
, not--file-from
. Is that a typo in your question or in the command you tried to run?
– Ladadadada
Mar 19 '12 at 8:58
The problem may be within your file; quote a path of it.
– brownian
Mar 19 '12 at 9:22
I am having a hard time posting the information that I want in the "comments" section. i will get back to you shortly. I will post the file where i ma fetching the input and the command output.
– slayedbylucifer
Mar 19 '12 at 10:15
add a comment |
What does rsync do when it "doesn't work"? It will probably help to give an extract from your list of files. The rest of the command you used may help too.
– Ladadadada
Mar 19 '12 at 8:53
1
The option is--files-from
, not--file-from
. Is that a typo in your question or in the command you tried to run?
– Ladadadada
Mar 19 '12 at 8:58
The problem may be within your file; quote a path of it.
– brownian
Mar 19 '12 at 9:22
I am having a hard time posting the information that I want in the "comments" section. i will get back to you shortly. I will post the file where i ma fetching the input and the command output.
– slayedbylucifer
Mar 19 '12 at 10:15
What does rsync do when it "doesn't work"? It will probably help to give an extract from your list of files. The rest of the command you used may help too.
– Ladadadada
Mar 19 '12 at 8:53
What does rsync do when it "doesn't work"? It will probably help to give an extract from your list of files. The rest of the command you used may help too.
– Ladadadada
Mar 19 '12 at 8:53
1
1
The option is
--files-from
, not --file-from
. Is that a typo in your question or in the command you tried to run?– Ladadadada
Mar 19 '12 at 8:58
The option is
--files-from
, not --file-from
. Is that a typo in your question or in the command you tried to run?– Ladadadada
Mar 19 '12 at 8:58
The problem may be within your file; quote a path of it.
– brownian
Mar 19 '12 at 9:22
The problem may be within your file; quote a path of it.
– brownian
Mar 19 '12 at 9:22
I am having a hard time posting the information that I want in the "comments" section. i will get back to you shortly. I will post the file where i ma fetching the input and the command output.
– slayedbylucifer
Mar 19 '12 at 10:15
I am having a hard time posting the information that I want in the "comments" section. i will get back to you shortly. I will post the file where i ma fetching the input and the command output.
– slayedbylucifer
Mar 19 '12 at 10:15
add a comment |
1 Answer
1
active
oldest
votes
Can use following with rsync -a option
"--include-from=FILE" and "--from-file=FILE"
I am having a hard time posting the information that I want in the "comments" section. i will get back to you shortly.
– slayedbylucifer
Mar 19 '12 at 10:14
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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%2fserverfault.com%2fquestions%2f371042%2frsync-read-input-from-a-file-and-sync-accordingly%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Can use following with rsync -a option
"--include-from=FILE" and "--from-file=FILE"
I am having a hard time posting the information that I want in the "comments" section. i will get back to you shortly.
– slayedbylucifer
Mar 19 '12 at 10:14
add a comment |
Can use following with rsync -a option
"--include-from=FILE" and "--from-file=FILE"
I am having a hard time posting the information that I want in the "comments" section. i will get back to you shortly.
– slayedbylucifer
Mar 19 '12 at 10:14
add a comment |
Can use following with rsync -a option
"--include-from=FILE" and "--from-file=FILE"
Can use following with rsync -a option
"--include-from=FILE" and "--from-file=FILE"
edited Mar 19 '12 at 9:07
answered Mar 19 '12 at 9:01
neolixneolix
348520
348520
I am having a hard time posting the information that I want in the "comments" section. i will get back to you shortly.
– slayedbylucifer
Mar 19 '12 at 10:14
add a comment |
I am having a hard time posting the information that I want in the "comments" section. i will get back to you shortly.
– slayedbylucifer
Mar 19 '12 at 10:14
I am having a hard time posting the information that I want in the "comments" section. i will get back to you shortly.
– slayedbylucifer
Mar 19 '12 at 10:14
I am having a hard time posting the information that I want in the "comments" section. i will get back to you shortly.
– slayedbylucifer
Mar 19 '12 at 10:14
add a comment |
Thanks for contributing an answer to Server Fault!
- 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%2fserverfault.com%2fquestions%2f371042%2frsync-read-input-from-a-file-and-sync-accordingly%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
What does rsync do when it "doesn't work"? It will probably help to give an extract from your list of files. The rest of the command you used may help too.
– Ladadadada
Mar 19 '12 at 8:53
1
The option is
--files-from
, not--file-from
. Is that a typo in your question or in the command you tried to run?– Ladadadada
Mar 19 '12 at 8:58
The problem may be within your file; quote a path of it.
– brownian
Mar 19 '12 at 9:22
I am having a hard time posting the information that I want in the "comments" section. i will get back to you shortly. I will post the file where i ma fetching the input and the command output.
– slayedbylucifer
Mar 19 '12 at 10:15