specify Maximum number of backups in the repository in pleskbackup - plesk

I have set up a custom back up of my VPS server.
/usr/local/psa/bin/pleskbackup server --prefix="VPS" --skip-logs --exclude-domain=mydomain.eu --output-file=ftp://myotherdomain.com/VPS-Backup/ --ftp-login=username --ftp-password=************* --ftp-passive-mode
And I have made this a scheduled task in the Plesk Admin.
All good.
How/Where do I specify the 'Maximum number of backups in the repository' so that the Back Ups don't stack up in the myotherdomain.com account.
Can I do so by adding an instruction to the command above or through Plesk?

Look at server_pref utility with option -max-backup-files

Related

Bypass Vertica ERROR 3326: Execution time exceeded run time cap of 01:00?

Using the SSIS tool and OLE DB, We are downloading data from a Vertica database, and the time it takes to download all the data exceeds the 1-hour Execution time exceeded run time cap set by Vertica.
Is it possible to somehow bypass that cap in SSIS? Maybe close the connection and reopen?
RUNTIMECAP is a parameter that is active for the duration of a Vertica session.
It can be set through the resource pool you are running under. The Administrator of Vertica can grant a resource pool to your user and configure your user to run under that resource pool. Find out if that is the case for you, and ask the Vertica database administrator to give you a higher runtime cap for exactly the extraction process, if that is the case.
Another way to set the runtime cap is a command that is fired at login (often configured in our OLE DB or ODBC data source configuration) as having to be fired at login:
SET SESSION RUNTIMECAP '1 HOUR';
If that's the case, try firing:
SET SESSION RUNTIMECAP '3 hours';
... or as much as you need - before running your export.

SQL Agent Job - No Access to share

I've got a SQL agent job, the first step is of type: Operating System (CmdExec), it's running as a Proxy which I created.
The command: \\ShareDrive\Program.exe
I have given the user of my Proxy rights on the ShareDrive folder share, but when I start the job I am always getting the following error:
Executed as user: ProxyUser. The process could not be created for step
1 of job 0xDA12CDA08820804EB95F551C1B2936E0 (reason: Access is
denied). The step failed.
I have tried setting the folder security to allow EVERYONE access, in this instance the job runs fine with no access issues, but poses a security risk.
Any assistance would be appreciated
You are accessing a share, there are two levels of security:
for the physical folder
for the share
The most restrictive permissions of the two is in effect.
Make sure that the windows account of the ProxyUser has proper permissions on both levels.

Tune Database Settings- chef

I am trying to install SQL Server 2012 using chef. Below is my chef recipe. But my task is to - Increase the buffer size(as results of common queries are returned slowly) and to - Decrease the transaction retry interval value (When transactions are failing frequently).
Could any one insight on this and tell me how to do this
include_recipe 'chocolatey::default'
chocolatey 'mssqlserver2012expressadv --allow-empty-checksums' do
action :install
end
You can use a Chef template to generate a Configuration_File.ini that fits your needs and later you can use it for your installation. So assuming you have a valid configuration template under templates directory:
template '/foo/bar/zaz/config_file.ini' do
source 'your.template.ini.erb'
variables(
variable1:node['attribute1']
...
variableN:node['attributeN']
)
action :create
end
However I am afraid that the second request you have (To dynamically set parameters depending on SQL server load) is not what Chef is intended for, since it is against chef's idempotent design. You can read more about it here.
If you are going to manage several SQL servers for different purposes, try looking at Chef Roles and Chef Environments, so you can override the configuration template to match the needs of each solution you deploy.

Sql Reporting Services Subscription Error

The Current Action cannot be completed because the user data source credentials that are required to execute this report are not stored in the report server database
Take a look at your datasources for your reports. There are two settings.
User can supply them.
Or they can be stored in DB.
They need to be stored in DB for subscriptions (at least that's how the error reads). See if you can modify your datsources.
please ignore if you had already solved it.
This issue may also happen if default user credentials (like windows userID) do not have enough permissions to run a piece of SQL script or a SP. We can go to SQL server report configuration and select an option to ask for credentials every time you run a report.
You can provide the correct user id paswd when prompted?
Praveen

ActiveDirectory Provider fail over Best Practices

ActiveDirectory Server 2003
I am using the ActiveDirectoryMembershipProvider and ADroleProvider. They work great. Until my active directory server restarts in the middle of the day to get updates. (I'm not in charge of the server and can't change this). When this happens, for the five minutes the server is rebooting, my users can't use my website because I've tied my menu to the Role Provider. So, here are my questions:
Is it possible to tell my RoleProvider to use the "next" available ADS? If so, how so that while the initial one reboots, I don't frustrate my users with ADS connection messages?
Should I be using some kind of connection pool that automatically reconnects to the available server? If so, how?
Let's imagine that all my active directory servers go down. Is there a way to keep my web application running? Obviously there are bigger problems if all servers are down, but what I'm after is a possible "disconnected" active directory authentication that will still move forward if the server somehow goes kaput. Is this wise AND possible?
You probably have the server connection string set to "server01.domain.local". If you change it to just "domain.local" you're no longer depending on "server01" being online. Instead you will use the Round Robin feature of Active Directory DNS to get a list of all domain controllers and use one that's online. (I don't think your admins reboot all of the domain controllers at the same time...)
Also try running nslookup domain.local a couple of times in succession in a command prompt to see the order changing.

Resources