If you don’t want another tests
directory created, the correct command would be
rsync -avzp --del -e "ssh -p myport" user@hostname:/var/www/tests/ /var/www/tests
Note the /
at the end of user@hostname:/var/www/tests/
.
Related Posts:
- What is archive mode in rsync?
- Rsync difference between –checksum and –ignore-times options
- How to keep rsync from chown’ing transferred files?
- Why is rsync skipping the main directory?
- api-ms-win-crt-runtime-l1-1-0.dll is missing when opening Microsoft Office file [closed]
- Istio Ingress resulting in “no healthy upstream”
- What is a LAMP stack?
- What is the difference between POST and PUT in HTTP?
- What and where are the stack and heap?
- What is a reverse shell?
- Why am I getting error for apple-touch-icon-precomposed.png
- How could I ping @here in Discord.py?
- What’s the syntax for mod in java
- STDERR? What is it? What are its common uses?
- What are the rules of the std::cin object in C++?
- ssh remote host identification has changed
- How to link to part of the same document in Markdown?
- What is {{.}} in mustache?
- How to split column into two in R using separate
- Where do I find a list of all mat-icons — Angular
- TypeError : ‘method’ object is not subscriptable
- In C++, what is wx.h?
- How to UPSERT (MERGE, INSERT … ON DUPLICATE UPDATE) in PostgreSQL?
- What is the difference between allFile and allMarkdownRemark in gatsby
- DynamoDB : The provided key element does not match the schema
- How do I run a single test using Jest?
- Why I am getting java.lang.AbstractMethodError errors?
- Mercurial: no ~/.hgrc file
- How to clamp an integer to some range?
- What is the iOS 8 System Font?
- PHP &$string – What does this mean?
- difference between ‘-webkit-box-shadow’ & ‘box-shadow’ in css
- Simple prime number generator in Python
- Update Git branches from master
- declaring a priority_queue in c++ with a custom comparator
- How to interactively (visually) resolve conflicts in SourceTree / git
- How to get the selected item from a ComboBox in JavaFX?
- Downcasting in Java
- How do I get monitor resolution in Python?
- Error in glm() in R
- Is there an online application that automatically draws tree structures for phrases/sentences?
- Create new tmux session from inside a tmux session
- classic ASP error ‘80020009’ Exception occurred
- Disable Chrome pinch zoom for use in kiosk
- How to ‘minify’ Javascript code
- How to extract Month from date in R
- Receiving “message”:”CB-ACCESS-KEY header is required” when attempting to connect to coinbase pro api
- Missing files, DirectX SDK (d3dx9.lib, d3dx9.h)
- Python High Pass Filter
- How to disable text selection highlighting
- if-not condition fails (jQuery)
- RGBA code for red color
- java array error “array required but int found”
- this: Cannot use this in static context
- Fail to create Android virtual Device, “No system image installed for this Target”
- How do I select text nodes with jQuery?
- Missing sudo password in Ansible
- Warning: session_start(): Cannot send session cookie – headers already sent by (output started at [duplicate]
- In Java, what is a shallow copy?
- conversion to inaccessible base class is not allowed [duplicate]
- A difference between statement and decision coverage
- How to draw a line with matplotlib?
- How to get the filename without the extension in Java?
- ifference between ibatis and mybatis
- How to install PyQt4 on Windows using pip?
- Example of realpath function in C
- Printing a 2D array in C
- Should 3rd Parties Use $wp_scripts/$wp_styles->add_data?
- Send an email that contains a HTML and plain text part
- Contact Form 7: Redirecting on a condition? [closed]
- Deleting images in array
- Next Previous siblings child pages
- dbDelta with the character ;
- Limiting the posts on the homepage to one taxonomy? [closed]
- What A Pupil Learns From Writing An Argumentative Essay
- Redirect, Change URLs or Redirect HTTP to HTTPS in Apache – Everything You Ever Wanted to Know About mod_rewrite Rules but Were Afraid to Ask
- List all DNS records in a domain using dig?
- How to add dependency on a Windows Service AFTER the service is installed
- Monday morning mistake: sudo rm -rf –no-preserve-root /
- What’s the meaning of ‘@’ in a DNS zone file?
- Delete Amazon EC2 terminated instance
- robocopy transfer file and not folder
- What’s the difference between include_tasks and import_tasks?
- rm on a directory with millions of files
- What ports to open for mail server?
- Why is Enterprise Storage so expensive?
- Should a wildcard SSL certificate secure both the root domain as well as the sub-domains?
- Why can’t MX records point to an IP address?
- How to show all banned IP with fail2ban?
- How can I get diff to show only added and deleted lines? If diff can’t do it, what tool can?
- Adding a user to an additional group using ansible
- Best system administrator accident [closed]
- Reread partition table without rebooting?
- How do I list all connected Salt Stack minions?
- protocol version mismatch — is your shell clean?
- How to get Apache2 to redirect to a subdirectory
- What does that mean: packages excluded due to repository priority protections
- How to keep the full path with rsync?
- How can I set a short timeout with the ping command?