SOLVED: Rsync - Double slash showing up in path when running scriptReasons for rsync NOT transferring all...

"Dear Stack Exchange, I am very disappointed in you" - How to construct a strong opening line in a letter?

How much income am I getting by renting my house?

I didn't do any exit passport control when leaving Japan. What should I do?

Are There 3D Rules for Flying and Distance?

Big Bracket for equations

How to deal with intolerable behavior of a subordinate?

Are there any rules around when something can be described as "based on a true story"?

Why is coffee provided during big chess events when it contains a banned substance?

Employer says he needs to delay payment by 3 months due to bureaucracy

What is the German word for: "It only works when I try to show you how it does not work"?

An idiomatic word for "very little" in this context?

Do you say "good game" after a game in which your opponent played poorly?

Why are KDFs slow? Is using a KDF more secure than using the original secret?

algebra permutations

Hieroglyphs numerals

Shortest way to get an EOF Error

How to make a PCB based on ATtiny easily updatable by end users?

Disrespectful employee going above my head and telling me what to do. I am his manager

Novel set in the future, children cannot change the class they are born into, one class is made uneducated by associating books with pain

Why is it popular to teach modulus via the example of mod 12 and analogue clocks?

What is the purpose of the redundant "いい人" in this example sentence

Fill a bowl with alphabet soup

How is the corresponding author on a (math) paper typically chosen?

Why are Starfleet vessels designed with nacelles so far away from the hull?



SOLVED: Rsync - Double slash showing up in path when running script


Reasons for rsync NOT transferring all files?Can rsync be configured to avoid modifying subdirectories not found in the source folder?CentOS rsync directory contents but not directory?Rsync multiple directories in one linersync - moving every JPG/jpg file from one hard drive to a single directory with a shell scriptAbsolute path names on rsync outputrsync unknown option from bash script executionCp command does an extra copying on different Ubuntu version for folder cloningInitial rsync backup of large data slow to RAID 5






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}








0

















I have a simple sync script i run when creating custom images and recently i switched to using rsync to copy the files, the two lines are as follows:



rsync -aP folder/folder/source destination/
rsync -aP folder2/folder2/source2 destination/


When i run the following, as soon as it hits line one i get the usual file or directory not found which is correct as there is no location



/folder//folder/source/new/



I have tried removing the wildcard from the end, removing the trailing slash, add quotes, but nothing seems to get it to stop adding the extra slash, since it takes a bit to run the script each time i figure asking would be quicker then change, test, wait till it hits that line, then repeat. Thanks!



Fix: added a beginning slash and no more double slash










share|improve this question









New contributor



LinuxSurfaceNut is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























  • I was reading this article "tecmint.com/rsync-local-remote-file-synchronization-commands" is the issue due to no beginning slash?

    – LinuxSurfaceNut
    1 hour ago


















0

















I have a simple sync script i run when creating custom images and recently i switched to using rsync to copy the files, the two lines are as follows:



rsync -aP folder/folder/source destination/
rsync -aP folder2/folder2/source2 destination/


When i run the following, as soon as it hits line one i get the usual file or directory not found which is correct as there is no location



/folder//folder/source/new/



I have tried removing the wildcard from the end, removing the trailing slash, add quotes, but nothing seems to get it to stop adding the extra slash, since it takes a bit to run the script each time i figure asking would be quicker then change, test, wait till it hits that line, then repeat. Thanks!



Fix: added a beginning slash and no more double slash










share|improve this question









New contributor



LinuxSurfaceNut is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























  • I was reading this article "tecmint.com/rsync-local-remote-file-synchronization-commands" is the issue due to no beginning slash?

    – LinuxSurfaceNut
    1 hour ago














0












0








0








I have a simple sync script i run when creating custom images and recently i switched to using rsync to copy the files, the two lines are as follows:



rsync -aP folder/folder/source destination/
rsync -aP folder2/folder2/source2 destination/


When i run the following, as soon as it hits line one i get the usual file or directory not found which is correct as there is no location



/folder//folder/source/new/



I have tried removing the wildcard from the end, removing the trailing slash, add quotes, but nothing seems to get it to stop adding the extra slash, since it takes a bit to run the script each time i figure asking would be quicker then change, test, wait till it hits that line, then repeat. Thanks!



Fix: added a beginning slash and no more double slash










share|improve this question









New contributor



LinuxSurfaceNut is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I have a simple sync script i run when creating custom images and recently i switched to using rsync to copy the files, the two lines are as follows:



rsync -aP folder/folder/source destination/
rsync -aP folder2/folder2/source2 destination/


When i run the following, as soon as it hits line one i get the usual file or directory not found which is correct as there is no location



/folder//folder/source/new/



I have tried removing the wildcard from the end, removing the trailing slash, add quotes, but nothing seems to get it to stop adding the extra slash, since it takes a bit to run the script each time i figure asking would be quicker then change, test, wait till it hits that line, then repeat. Thanks!



Fix: added a beginning slash and no more double slash







ubuntu rsync






share|improve this question









New contributor



LinuxSurfaceNut is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question









New contributor



LinuxSurfaceNut is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question



share|improve this question








edited 32 mins ago







LinuxSurfaceNut













New contributor



LinuxSurfaceNut is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 1 hour ago









LinuxSurfaceNutLinuxSurfaceNut

11 bronze badge




11 bronze badge




New contributor



LinuxSurfaceNut is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




LinuxSurfaceNut is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • I was reading this article "tecmint.com/rsync-local-remote-file-synchronization-commands" is the issue due to no beginning slash?

    – LinuxSurfaceNut
    1 hour ago



















  • I was reading this article "tecmint.com/rsync-local-remote-file-synchronization-commands" is the issue due to no beginning slash?

    – LinuxSurfaceNut
    1 hour ago

















I was reading this article "tecmint.com/rsync-local-remote-file-synchronization-commands" is the issue due to no beginning slash?

– LinuxSurfaceNut
1 hour ago





I was reading this article "tecmint.com/rsync-local-remote-file-synchronization-commands" is the issue due to no beginning slash?

– LinuxSurfaceNut
1 hour ago










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/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
});


}
});







LinuxSurfaceNut is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded
















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f545329%2fsolved-rsync-double-slash-showing-up-in-path-when-running-script%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









LinuxSurfaceNut is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded

















LinuxSurfaceNut is a new contributor. Be nice, and check out our Code of Conduct.













LinuxSurfaceNut is a new contributor. Be nice, and check out our Code of Conduct.












LinuxSurfaceNut is a new contributor. Be nice, and check out our Code of Conduct.
















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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f545329%2fsolved-rsync-double-slash-showing-up-in-path-when-running-script%23new-answer', 'question_page');
}
);

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









Popular posts from this blog

Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...