Main Menu

Search

HTML - Home - ABOUT TARBOTS


Welcome to tarbots.com
... AI Search Assistant

This site has articles which provides information on everyday commands, procedures & scripts for DevOps & Infrastructure technologies which will be very useful for System Admin, DevOps, CloudOps, Network Admins and any teams or individuals working on Infrastructure technologies.

CLICK HERE to learn more about tarbots.com


Technologies Covered In This Site

HTML - HOME - RECENT ARTICLES TITLE


Recent Articles


LINUX: How To Backup and Restore The Data Inside XFS Filesystem on the Linux Hosts?

XFS filesystem can be backed up on Linux hosts using xfsdump.

Below are steps.

Install xfsdump package if it does not exist.

 dnf -y install xfsdump

Backup the xfs filesystem using below xfsdump command.

xfsdump -f <filename>.dump <xfs filesystem to backup>

For example if you want to backup /var/lib/containers XFS filesystem and save the dump to /apps/images.dump, your command will look as follows:

xfsdump -f /apps/images.dump /var/lib/containers

Restore XFS filesystem from backup dump

If you want to restore the XFS filesystem from dump, use below command

xfsrestore -f <filename>.dump <xfs filesystem to restore to>

For example if you want to restore to /var/lib/containers XFS filesystem from the dump /apps/images.dump, your command will look as follows:

xfsrestore -f /apps/images.dump /var/lib/containers



Keywords:

backup backing restore restoring disasterrecovery DR disaster recover recovering dump file files original state 



PODMAN: How To Change /var/tmp (imageCopyTmpDir ) Of Podman To Different Directory?

Below are steps to change the podman tmp directory from default /var/tmp location.


1. Set the podman tmp directory to desired directory. In below command example it is /var/tmp/testdir. Change the /var/tmp/testdir directory to directory of your choice.

$ export TMPDIR=/var/tmp/testdir

2. Restart podman and reload daemon.

Below are commands.

$ sudo systemctl daemon-reload

$ sudo systemctl restart podman

3. Validate podman tmp directory is changed to the new directory set.

Use below command.

$ podman info | grep -i tmp

Below is the output you should see which should change the tmp directory location for imageCopyTmpDir parameter

$ podman info | grep -i tmp

  imageCopyTmpDir: /var/tmp/testdir 



Keywords:

Change Changing Update Updating default custom tmp temp temporary directories directories files file modify modifying cache caching

PODMAN: Command To Check The TEMP Image Copy Directory (tmp) Used By Podman

Below podman command can be used to check the podman temp file location where images are stored during pull/push

podman info | grep -i tmp


Keywords:

temporary temp tmp location file files cache checking validate validating how to check

PODMAN: Command To Tail Podman Container Instance Logs

Below is the command to tail podman container instance logs.

podman logs -tf <container id>

<container id> can be gathered from "podman ps -a" command.



Keywords

tail tailing log logging logs logfiles file files