Rsync keep full symlink directory structureCopy symlink AND where it points to using rsyncHow to setup a...
Can my floppy disk still work without a shutter spring?
Apt - strange requests to d16r8ew072anqo.cloudfront.net:80
Website returning plaintext password
Have 1.5% of all nuclear reactors ever built melted down?
Is it possible to remotely hack the GPS system and disable GPS service worldwide?
Compaq Portable vs IBM 5155 Portable PC
Value of a binomial series
Is the Unsullied name meant to be ironic? How did it come to be?
Did 20% of US soldiers in Vietnam use heroin, 95% of whom quit afterwards?
Ingress filtering on edge routers and performance concerns
Why would Ryanair allow me to book this journey through a third party, but not through their own website?
Can the product of any two aperiodic functions which are defined on the entire number line be periodic?
First Match - awk
How to cut a climbing rope?
Is it true that cut time means "play twice as fast as written"?
Efficient Algorithm for the boundary of a set of tiles
Python program to take in two strings and print the larger string
Where's this lookout in Nova Scotia?
Does this strict reading of the rules allow both Extra Attack and the Thirsting Blade warlock invocation to be used together?
Ethical issue - how can I better document what is happening?
In the 3D Zeldas, is it faster to roll or to simply walk?
Question in discrete mathematics about group permutations
How should I introduce map drawing to my players?
Why aren't space telescopes put in GEO?
Rsync keep full symlink directory structure
Copy symlink AND where it points to using rsyncHow to setup a rsync server and client?Reasons for rsync NOT transferring all files?Moving a backup directory with hard linksWhy does my rsync filter copy one included folder and not the other?rsync maintain folder structure given pointHow to rsync multiple source foldersCopy *changed/new files only* to a DIFFERENT directory?Rsync is syncing $HOME instead of the provided directoryHow does the rsync symlink exploit work?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
So, I am trying to keep the synlink structure when transfering files, so my folder structure:
$HOME/backup/backup/symlinks
- $HOME/Documents/hello.txt
$HOME/backup/backup/data
Now, when I sync I want to keep the symlinks full folder structure.
What it does now:
$HOME/backup/backup/symlinks
- $HOME/Documents/hello.txt
$HOME/backup/backup/data
- hello.txt
What I want it to do
$HOME/backup/backup/symlinks
- $HOME/Documents/hello.txt
$HOME/backup/backup/data
- /home/user/Documents/hello.txt (aka, create the full structure inside the backup/data folder)
So, I want create a full path inside my data folder, to where the original symlinks content came from.
I have tried the following:
rsync -a ${BACKUP}/backup/symlinks/ /${BACKUP}/backup/data/
rsync -aK ${BACKUP}/backup/symlinks/ /${BACKUP}/backup/data/
rsync -aKL ${BACKUP}/backup/symlinks/ /${BACKUP}/backup/data/
Is this possible with rsync? If so, how can I got about achieving this.
rsync
add a comment |
So, I am trying to keep the synlink structure when transfering files, so my folder structure:
$HOME/backup/backup/symlinks
- $HOME/Documents/hello.txt
$HOME/backup/backup/data
Now, when I sync I want to keep the symlinks full folder structure.
What it does now:
$HOME/backup/backup/symlinks
- $HOME/Documents/hello.txt
$HOME/backup/backup/data
- hello.txt
What I want it to do
$HOME/backup/backup/symlinks
- $HOME/Documents/hello.txt
$HOME/backup/backup/data
- /home/user/Documents/hello.txt (aka, create the full structure inside the backup/data folder)
So, I want create a full path inside my data folder, to where the original symlinks content came from.
I have tried the following:
rsync -a ${BACKUP}/backup/symlinks/ /${BACKUP}/backup/data/
rsync -aK ${BACKUP}/backup/symlinks/ /${BACKUP}/backup/data/
rsync -aKL ${BACKUP}/backup/symlinks/ /${BACKUP}/backup/data/
Is this possible with rsync? If so, how can I got about achieving this.
rsync
add a comment |
So, I am trying to keep the synlink structure when transfering files, so my folder structure:
$HOME/backup/backup/symlinks
- $HOME/Documents/hello.txt
$HOME/backup/backup/data
Now, when I sync I want to keep the symlinks full folder structure.
What it does now:
$HOME/backup/backup/symlinks
- $HOME/Documents/hello.txt
$HOME/backup/backup/data
- hello.txt
What I want it to do
$HOME/backup/backup/symlinks
- $HOME/Documents/hello.txt
$HOME/backup/backup/data
- /home/user/Documents/hello.txt (aka, create the full structure inside the backup/data folder)
So, I want create a full path inside my data folder, to where the original symlinks content came from.
I have tried the following:
rsync -a ${BACKUP}/backup/symlinks/ /${BACKUP}/backup/data/
rsync -aK ${BACKUP}/backup/symlinks/ /${BACKUP}/backup/data/
rsync -aKL ${BACKUP}/backup/symlinks/ /${BACKUP}/backup/data/
Is this possible with rsync? If so, how can I got about achieving this.
rsync
So, I am trying to keep the synlink structure when transfering files, so my folder structure:
$HOME/backup/backup/symlinks
- $HOME/Documents/hello.txt
$HOME/backup/backup/data
Now, when I sync I want to keep the symlinks full folder structure.
What it does now:
$HOME/backup/backup/symlinks
- $HOME/Documents/hello.txt
$HOME/backup/backup/data
- hello.txt
What I want it to do
$HOME/backup/backup/symlinks
- $HOME/Documents/hello.txt
$HOME/backup/backup/data
- /home/user/Documents/hello.txt (aka, create the full structure inside the backup/data folder)
So, I want create a full path inside my data folder, to where the original symlinks content came from.
I have tried the following:
rsync -a ${BACKUP}/backup/symlinks/ /${BACKUP}/backup/data/
rsync -aK ${BACKUP}/backup/symlinks/ /${BACKUP}/backup/data/
rsync -aKL ${BACKUP}/backup/symlinks/ /${BACKUP}/backup/data/
Is this possible with rsync? If so, how can I got about achieving this.
rsync
rsync
asked 37 mins ago
TheDeepNateTheDeepNate
103
103
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f520782%2frsync-keep-full-symlink-directory-structure%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 Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f520782%2frsync-keep-full-symlink-directory-structure%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