cpanel backup 'cpbackup-exclude.conf' exclude all files except .php and .js [closed] - backup

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 12 months ago.
Improve this question
my "cpbackup-exclude.conf" has below lines that exclude images:
/home/public_html/*/*.jpg
/home/public_html/*/*.jpeg
/home/public_html/*/*.webp
/home/public_html/*/*.png
/home/public_html/*/*.gif
i am using shared server.
mostly i make changes in ".php" and ".js" files.
so why entire backup?
thus i want to backup only ".php" files and ".js" files.
as there are hundreds of file types (have different extensions), adding them will make the list very long.
is there any short statement for this?

Had to search it myself, but to exclude all ".jpg" files from backup, use this line:
*.jpg
Do that for every file type / extension, 1 for each line.
Source: Link to Source

Related

What is a tabufa file? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I ran across some files on a public share. The extension is .tabufa. There is concern this is some sort of hack. Based on my knowledge of that business unit and some of the file names, I suspect these files have something to do with Tableau. Most of them are like filename.xlsm.tabufa, but one is filename.lnk.tabufa.
Another likely scenario is someone did a batch rename to tack .tabufa to the end of all file names in that folder, so this may be a wild goose chase.
I have found nothing about this extension by using a search engine.
One other clue: There is a file named how_to_back_files.html in the same folder. The user who identified the file extension (Right, it wasn't me. I don't have access to that folder.) verified that this file contains the ransom note.
These are files that have been encrypted by GlobeImposter 2.0 Ransomware. See this link.
Probably not Tableau. I would be more inclined to lean on the .xlsm portion which would indicate that it is a Macro Enabled Excel file. I'm guessing a Macro caused/created the custom extension either on purpose or on accident.
To verify, you can change the the extension to .xml. Open with a text editor and if it is Tableau it will start with something similar to the following:
<?xml version='1.0' encoding='utf-8' ?>
<!-- build 20182.18.0627.2230 -->
<workbook original-version='10.5' source-build='2018.2.0 (20182.18.0627.2230)'
source-platform='mac' version='18.1'

open unknown file name in known directory [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a special directory which only ever contains one file.
the file may vary in name and or extention type but its location is always the same directory.
based upon this information how can I launch (trigger) the file
I'm using VB.net
The Directory.GetFiles() or DirectoryInfo.GetFiles() methods will help you find the file that is in the directory.
Assuming you're trying to execute the file, Process.Start() is probably what you're looking for.
If you run into any problems with either of them, you'll need to provide more details as to your situation and what you're trying to do.

vb.net global image filepath [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Im trying to add pictures to an excel file, in this excel file command it asks for a image Path not the image...
i have added images to my resources but can't programatically find there path ( say it was installed on another machine )
anyone know how that would look ?
filepath of my.Resources.zoo_picture_1 . tostring??
any help is appreciated
ok i disagree with the downvote ... i just need to konw how to find out the imagepath of the my.resouces.zoo_picture_1 picture..... there not going to always be located on my c: drive...
Since embedded resources are not part of the file system hierarchy, there's no way to get a path to them. You'll need to distribute your images as files alongside your application.

Avoiding accidental delete of files on external hard disc [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Recently I deleted my huge collection of data that I stored in my hard disc accidentally. I recovered it using some recovery software.
But I want to set my hard disc in such a way that, nobody can delete the files, even it is administrator of my system or other system , until the permission is changed.
I don't like to use any external software for my need.
What can I do?
The closest you can get to this, on Linux and OS X, at least, is setting the sticky bit on the directory containing the files and changing the owner of the directory and those files to a dummy user.
chmod +t /path/to/dir
chown -R someone /path/to/dir
The sticky bit makes it so only the file owner or root (or, on OS X, someone with write access to the directory) can delete or rename files in a directory.

Canonical Links - Same file on server [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am using Microsoft's IIS SEO analyzer, and it keeps showing me a warning that I have a canonical link error because I'm storing the same file in different folders on the server. Doing this makes my file structure much more organized that linking different folders together. Should I just ignore this or is this a big deal for SEO?
Where files are located on your server has nothing to do with SEO. There is no way for search engines to know where files are actually located and a page's URL dos not necessarily indicate its location on the server. What does matter is whether two URLs pull up the same page. That would be duplicate content and a problem for your SEO efforts.