File management: Difference between revisions

moving files with rsync
→‎Delete files: Another method of deleting files under a folder
moving files with rsync
Tags: Mobile edit Mobile web edit
Line 145: Line 145:
<syntaxhighlight lang="bash" highlight="1">
<syntaxhighlight lang="bash" highlight="1">
$ rsync -azv ~/folder_a/ mhan@tom.myserver.com:~/folder_b/
$ rsync -azv ~/folder_a/ mhan@tom.myserver.com:~/folder_b/
</syntaxhighlight>
= Move files =
<syntaxhighlight lang="bash" highlight="1">
$ rsync --remove-source-files -HAXzvhr /srv/share/media/movies/chanbara/* ./chanbara/
</syntaxhighlight>
</syntaxhighlight>