• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

verbose

Tar List of Files

November 8, 2020

Here’s another way of creating a tar ball from a list of files.

tar -cvf backup.tar.gz a.txt b.txt c.txt d.txt e.txt

tar -cvf backup.tar.gz a.txt b.txt c.txt d.txt e.txt

Here’s how to view files in a tarball.

tar -tvf backup.tar.gz

tar -tvf backup.tar.gz

Filed Under: Linux Tagged With: archive, create, tar, verbose

Copy Files Using Rsync

August 30, 2019

Here’s how to copy files from one directory to another.

rsync -arvz /dir1 /dir2 >> /tmp/rsync.log &

rsync -arvz /dir1 /dir2 >> /tmp/rsync.log &

Format: rsynch –options source destination

Options

  • -a archive mode
  • -v verbose
  • -p keep permissions
  • -z zipped during transfer
  • -r recursive

Filed Under: Linux Tagged With: archive, permissions, recursive, rsync, verbose, zipped

  • Home
  • About
  • Archives

Copyright © 2023