Use following command to copy-backup files from remote location to local location. {“/dev/“,”/proc/“,”/sys/“,”/tmp/“,”/run/“,”/mnt/“,”/media/*”,”/lost+found”}: This will exclude the files that we don’t need the backup for. root@111.2222.333.444/path/to/remote/folder/ : This is remote path. /backups/local/folder : This is local path.
Category: File Operations
How to Install and use wkhtmltopdf on CentOS 8
In this article we will discuss about how to install wkhtmltopdf on centos 8 and simple examples to use it. Introduction Often we find ourselves in a position where we need quick pdf files for a document that is right now is on internet. There’s is no direct way to do it from browser unless you hit online tools that…
List subfolders in a directory with human-readable folder size
If you want to list subfolders in a directory with human-readable content size in them then you can use this command: Here –max-depth=1 indicates that we don’t want to parse the subdirectories of subdirectories that currently we are showing size for. The output will look like this: This answers the question: How to list subdirectories with size?
Replace multi-line text in files via notepad++
Many a time we need to replace text in files, we do it manually all the time. But it becomes very much difficult if we need to do that for 1000’s of files and that too we need to replace multiple lines of text. So here I will show how we can replace multi-line text in files via notepad++. For…