Rsync: Push certain files to another server without the sub-foldersBacking up files from specific folders in rsyncHow to delete sub-folders but keep all the files?rsync isn't creating files or foldersrsync to download (in one way) files from one server to anotherrsync without deleting between 2 foldersIs there any advantage to Rsync moving files on the same machine?rsync --exclude option for copying folders from serverrsync: Sync folders, but keep extra files in targetAccessing Files in Other Users FTP Folder?
What should be the waveform for ZX Spectrum tapes?
Graph that visualizes subset relations
Why would prey creatures not hate predator creatures?
How do I activate Windows XP nowadays (in 2019)?
Reproduce diagram relating different continuity properties
What is next number in the sequence?
How to handle a colleague who appears helpful in front of manager but doesn't help in private?
What are the minimum element requirements for a star?
"Startup" working hours - is it normal to be asked to work 11 hours/ day?
Why are rain clouds darker?
How can I add an ammeter and/or voltmeter to my home breaker panel?
How can I improve combat so my players don't always use the strategy of collectively focusing fire on one enemy at a time until it's dead?
Is it possible to animate 2 folds on the same sheet?
Why do some DSLRs have ISO less than 100?
ASCII texturing
N-Dimensional Cartesian Product
Ran out of space of newly installed HDD?
Locked folder with obscure app from Sourceforge, now cannot unlock folder
Sci Fi novel possibly from the 70s on high gravity world
How to left align the beginnings of two equations and right align the ends of the equations
Isn't any conversation with the US president quid-pro-quo?
Why do we use the particular magnitude of a force to calculate work?
What does this docker log entry mean?
Can Counterspell be used to prevent a Mystic from using a Discipline?
Rsync: Push certain files to another server without the sub-folders
Backing up files from specific folders in rsyncHow to delete sub-folders but keep all the files?rsync isn't creating files or foldersrsync to download (in one way) files from one server to anotherrsync without deleting between 2 foldersIs there any advantage to Rsync moving files on the same machine?rsync --exclude option for copying folders from serverrsync: Sync folders, but keep extra files in targetAccessing Files in Other Users FTP Folder?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
There are similar questions, but I cannot find one that answers what I need. Server A has a bunch of media files on it each one in sub-folders under the main, for example: /home/user/Summer/ and in that folder are subfolders 2010, 2011, 2012 and so on; the files are of the types .jpg, .gif, and .png and I want to push them to another server to this folder /home/user/pictures.
The current line I am trying to use is:
rsync -avPWr --exclude='*/' --include="*.jpg" --include="*.gif" --include="*.png" --perms --chmod=777 -p /home21/user/Summer/ user@ip:/home/user/pictures
Does anyone have any suggestions?
directory rsync
add a comment
|
There are similar questions, but I cannot find one that answers what I need. Server A has a bunch of media files on it each one in sub-folders under the main, for example: /home/user/Summer/ and in that folder are subfolders 2010, 2011, 2012 and so on; the files are of the types .jpg, .gif, and .png and I want to push them to another server to this folder /home/user/pictures.
The current line I am trying to use is:
rsync -avPWr --exclude='*/' --include="*.jpg" --include="*.gif" --include="*.png" --perms --chmod=777 -p /home21/user/Summer/ user@ip:/home/user/pictures
Does anyone have any suggestions?
directory rsync
add a comment
|
There are similar questions, but I cannot find one that answers what I need. Server A has a bunch of media files on it each one in sub-folders under the main, for example: /home/user/Summer/ and in that folder are subfolders 2010, 2011, 2012 and so on; the files are of the types .jpg, .gif, and .png and I want to push them to another server to this folder /home/user/pictures.
The current line I am trying to use is:
rsync -avPWr --exclude='*/' --include="*.jpg" --include="*.gif" --include="*.png" --perms --chmod=777 -p /home21/user/Summer/ user@ip:/home/user/pictures
Does anyone have any suggestions?
directory rsync
There are similar questions, but I cannot find one that answers what I need. Server A has a bunch of media files on it each one in sub-folders under the main, for example: /home/user/Summer/ and in that folder are subfolders 2010, 2011, 2012 and so on; the files are of the types .jpg, .gif, and .png and I want to push them to another server to this folder /home/user/pictures.
The current line I am trying to use is:
rsync -avPWr --exclude='*/' --include="*.jpg" --include="*.gif" --include="*.png" --perms --chmod=777 -p /home21/user/Summer/ user@ip:/home/user/pictures
Does anyone have any suggestions?
directory rsync
directory rsync
edited Sep 7 at 23:53
Eliah Kagan
95.2k25 gold badges256 silver badges409 bronze badges
95.2k25 gold badges256 silver badges409 bronze badges
asked Sep 7 at 22:00
Gregg GossickGregg Gossick
112 bronze badges
112 bronze badges
add a comment
|
add a comment
|
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
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/4.0/"u003ecc by-sa 4.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%2faskubuntu.com%2fquestions%2f1171607%2frsync-push-certain-files-to-another-server-without-the-sub-folders%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f1171607%2frsync-push-certain-files-to-another-server-without-the-sub-folders%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