Grupos de Google ya no admite publicaciones ni suscripciones nuevas de Usenet. El contenido anterior sigue visible.

CMD line to clear FF cache (only)

1,529 vistas
Ir al primer mensaje no leído

king daddy

no leída,
5 sept 2016, 8:53:39 a.m.5/9/2016
para mozilla-sup...@lists.mozilla.org
I want to create a batch file to backup FF profile...
to be called from the Task Scheduler.

I want to clear the cache (only) before copying the profile.

Can I do that from command line?

Big Al

no leída,
5 sept 2016, 10:13:34 a.m.5/9/2016
para mozilla-sup...@lists.mozilla.org
Read between the lines, stupid wordwrap! and change / to \
I'm cutting and pasting this from Linux. Also my OS is 64bit and
Robocopy was found in that folder below. 32 bit may be diff.

But loosely translated this should work, not sure it's all the cache but
it seems to work for me.
The first 3 delete some cache and the last one does a mirror backup.

If you're not familiar with robocopy and it's MIRROR command, it will
mirror one source to destination, removing deleted stuff, adding changes
and new and best of all skipping all the files that are the same, making
it a bit faster than copy.

del
/Users/Alan/AppData/Local/Mozilla/Firefox/Profiles/xxxxxxxx.default/thumbnails/*.*

del
/Users/Alan/AppData/Local/Mozilla/Firefox/Profiles/xxxxxxxx.default/OfflineCache/*.*

del
/Users/Alan/AppData/Local/Mozilla/Firefox/Profiles/xxxxxxxx.default/cache2/entries/*.*

C:\Windows\SysWOW64\robocopy "C:\Users\alan\AppData\Roaming\Mozilla"
"X:\path\to\some\dir" /MIR /NJH /NJS /DST /NDL

Christian Riechers

no leída,
5 sept 2016, 2:08:42 p.m.5/9/2016
para mozilla-sup...@lists.mozilla.org
There shouldn't be any need to do that. The cache isn't part of the
profile, hence it doesn't need to be cleared prior to backing up the
profile.
If that isn't the case for you manually move the cache folder out of
your profile folder.
Both, Windows and Linux have default locations for this.

Big Al

no leída,
5 sept 2016, 4:56:54 p.m.5/9/2016
para mozilla-sup...@lists.mozilla.org
You know something, (and you do) but I didn't, you're right. The cache
is in local and the profile is in roaming. At least the only way I've
seen it.

I read the local newspaper and it stops letting me read after about 30
times and if I clear the cache it lets me read again. Something it
keeps there. So my script is only for that reason.

WaltS48

no leída,
5 sept 2016, 5:46:53 p.m.5/9/2016
para mozilla-sup...@lists.mozilla.org
On 9/5/2016 4:56 PM, Big Al wrote:
> I read the local newspaper and it stops letting me read after about 30
> times and if I clear the cache it lets me read again. Something it
> keeps there. So my script is only for that reason.


My local newspaper does the same, but clearing cookies fixes it for me.
I'll have to try clearing the cache and see what happens.

king daddy

no leída,
6 sept 2016, 11:56:35 p.m.6/9/2016
para mozilla-sup...@lists.mozilla.org
I have enough information in all the responses. Thanks!

I should explain my non-standard operation.

My operational FF profile, and a lot of my temp is on a Ram Drive, so I exploit a reboot to clear it all.

All my personal data, documents, pictures, etc is on drive D:
I have done this ever since Windows 98.
My FF profile is also there.
When I clear the cache using FF History, profile backup is nearly instant.

I backup FF profile daily with Windows Task Scheduler. Archives are done manually.

Scheduler also handles personal data drive backup one a week, and System Drive once a week.

With no personal data on drive C, system backup is smaller and quicker.

Images and (personal) movies are backed up once a month.

Thanks for the help.

Carl
0 mensajes nuevos