| 1 min read | Unix things I always forget 4/7
Rsync is a command line tool to copy files between different hosts.
rsync -a <source> <destination>
-a flag ensures everything’s copied recursively, ensures permissions are copied correctly, an other things.
Copy a directory from a remote server to your machine:
rsync -av email@example.com:spatie.be/current/public/media/ public/media
By suffixing the source directory with
/, its contets are placed inside the destination directory. Otherwhise you’d end up with
Unix things I always forget
This series is an attempt to document the Unix commands I know, and the ones I occasionally need.
Follow along, and you might learn some tricks along the way! Consider this series a living document that will grow organically; I won’t be updating or adding new posts on a set schedule.